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
  •  


Cisco SG95-16 16-Port Gigabit Switch SG95-16-KR picture

Cisco SG95-16 16-Port Gigabit Switch SG95-16-KR

$47.00



8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch picture

8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch

$76.50



Cisco  (SG100D-05-UK) 5-Ports External Ethernet Switch picture

Cisco (SG100D-05-UK) 5-Ports External Ethernet Switch

$40.00



100Mbps Fiber Optic Media Converter 16 SC Optical Port 2 RJ45 10/100/1000Mbps picture

100Mbps Fiber Optic Media Converter 16 SC Optical Port 2 RJ45 10/100/1000Mbps

$462.99



HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A picture

HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A

$30.95



Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch picture

Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch

$21.99



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$18.99



HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch picture

HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch

$34.99



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



Netgear Prosafe Plus JGS524PE 24 Port Gigabit Switch 12 Port PoE JGS524PE-100NAS picture

Netgear Prosafe Plus JGS524PE 24 Port Gigabit Switch 12 Port PoE JGS524PE-100NAS

$129.98