Results 1 to 7 of 7

Thread: How to compile a .deb from source tar.gz?

  1. #1
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    12

    How to compile a .deb from source tar.gz?

    I frequently use several programs that are not available as .debs (I used Red Hat before Knoppix.) I am used to using RPM to compile from a tar.gz; how is this done with dpkg?

  2. #2
    Member registered user
    Join Date
    Jul 2003
    Location
    Delft, the Netherlands
    Posts
    76
    I don't know about tar.gz files, but for a straight *.rpm file typing 'rpm -i <filename>' in a root console worked for me. Try it with the tar.gz, if it doesn't work gunzip and untar it first.

    HTH

    - - Edwin

  3. #3
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    12
    I guess I wasn't clear. I want to use programs that are neither available as .debs or rpms. In my old Red Hat, I simply compiled these programs under RPM with -ta option and got a RPM that I could install with rpm -i progname.

    How do I compile a source tarball under Knoppix so I end up with a .deb which I can install so it is seen by the database?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by annamerikin
    I guess I wasn't clear. I want to use programs that are neither available as .debs or rpms. In my old Red Hat, I simply compiled these programs under RPM with -ta option and got a RPM that I could install with rpm -i progname.

    How do I compile a source tarball under Knoppix so I end up with a .deb which I can install so it is seen by the database?
    Read your post earlier today and read this a few minutes ago and thought it might be just what you are looking for checkinstall will make a debian package and install it using dpkg.

  5. #5
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    12
    Did some reading of the man pages for dpkg and dpkg-deb. It appears that "dpkg-deb -b" will do what I want. Except for the control files, which are not explained in the man pages. So:

    Where can I learn about the internals of the dpkg and dpkg-deb systems -- specifically how to build a control tree?

    BTW, thanks for the link to checkinstall. I tried it some time ago for help in compiling under rpm, but it installed the packages it built with the --force --nodeps option (equivalent to deb -force -nodepends) which almost guaranteed no installation information output and a broken installation.

    Quote Originally Posted by Stephen
    Quote Originally Posted by annamerikin
    I guess I wasn't clear. I want to use programs that are neither available as .debs or rpms. In my old Red Hat, I simply compiled these programs under RPM with -ta option and got a RPM that I could install with rpm -i progname.

    How do I compile a source tarball under Knoppix so I end up with a .deb which I can install so it is seen by the database?
    Read your post earlier today and read this a few minutes ago and thought it might be just what you are looking for checkinstall will make a debian package and install it using dpkg.

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by annamerikin

    Where can I learn about the internals of the dpkg and dpkg-deb systems -- specifically how to build a control tree?
    Ah I see you are looking for some light reading I would suggest going to the source so to speak the basic Debian package management system FAQ there's more than enough here links to get you started. Also the Debian docs page and the lists page the Debian user list is a great source of information although it is a high volume list (250-400 e-mails a day) but you can read it in a news reader if you do not want that many e-mails.

    HTH

  7. #7
    Member registered user
    Join Date
    Jun 2003
    Location
    Carlisle, England
    Posts
    42
    try "apt-get install alien", followed by "man alien"...... think this will do what you are looking to do.

    Oh, forgive me, can't remember if it comes with Knoppix, if it does forget the first part :P

Similar Threads

  1. How do I install kernel source and config/compile kernel??
    By cfish in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 04-25-2005, 07:31 AM
  2. How to compile
    By gamezealot in forum General Support
    Replies: 6
    Last Post: 01-20-2005, 08:54 PM
  3. Where is kernel 2.6 source to compile Nvidia drivers?
    By pepe in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 11-09-2004, 05:30 PM
  4. Kernel compile problem - first Knoppix kernel compile
    By Nigel_Tufnel in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-20-2003, 01:09 PM
  5. custom kernel, debian source vs kernel.org source
    By garyng in forum Customising & Remastering
    Replies: 1
    Last Post: 04-13-2003, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB picture

USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB

$8.47



Critical BIOS ROM HPE ProLiant DL160 DL180 Gen9 (U20) U20_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL160 DL180 Gen9 (U20) U20_3.40_08_29_2024+iLO4

$7.99



Critical BIOS ROM HPE ProLiant BL460cWS46 Gen9 (I36) I36_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant BL460cWS46 Gen9 (I36) I36_3.40_08_29_2024+iLO4

$7.99



Critical BIOS ROM HPE ProLiant DL560 Gen9 (P85) P85_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL560 Gen9 (P85) P85_3.40_08_29_2024+iLO4

$7.99



2x IBM 01EK168 8.55TB MicroLatency Flash Module AF3K FlashSystem 900 9840-AE3 picture

2x IBM 01EK168 8.55TB MicroLatency Flash Module AF3K FlashSystem 900 9840-AE3

$800.00



Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC picture

Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC

$49.99



Microsoft Windows 11 Pro 64-Bit USB Flash Drive Sealed with Product Key Card picture

Microsoft Windows 11 Pro 64-Bit USB Flash Drive Sealed with Product Key Card

$39.99



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$269.10



Critical BIOS ROM HPE ProLiant DL580 Gen9 (U17) U17_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL580 Gen9 (U17) U17_3.40_08_29_2024+iLO4

$7.99



HM-USB-ISO picture

HM-USB-ISO

$400.00