PDA

View Full Version : How to compile a .deb from source tar.gz?



annamerikin
07-03-2003, 07:40 AM
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?

Edwin
07-03-2003, 12:56 PM
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

annamerikin
07-03-2003, 03:22 PM
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?

Stephen
07-04-2003, 06:30 AM
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 (http://asic-linux.com.mx/~izto/checkinstall/) will make a debian package and install it using dpkg.

annamerikin
07-04-2003, 01:24 PM
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.



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 (http://asic-linux.com.mx/~izto/checkinstall/) will make a debian package and install it using dpkg.

Stephen
07-04-2003, 05:49 PM
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 (http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html) package management system FAQ there's more than enough here links to get you started. Also the Debian docs (http://www.debian.org/doc/) page and the lists (http://www.debian.org/MailingLists/) 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

Doc
07-04-2003, 11:13 PM
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