Which package to choose, when no debian available ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Better way. If you don't have checkinstall, get it. With checkinstall, you can invoke the program to install a tarball and create an installable binary rpm/deb/slackpack (you are prompted to choose which if you didn't edit checkinstallrc before hand). Checkinstall will put the tarball through it's paces, create and install the binary, and leave a copy of the .deb for you to archive somewhere.
The documentation is a bit short in the discussion on using a script to string commands together for checkinstall to use. Edit the README: scroll down until you find the beginning of this quote, then cut and paste.
NOTE: If you give no arguments to checkinstall it will run a "make install". If you give arguments, the first non-option argument will be used as the install command. This is useful when the install command is not "make install" but something else like "make install_packages" or "setup" or whatever, i.e. checkinstall make install_packages checkinstall make modules_install checkinstall install.sh checkinstall setup checkinstall rpm -i my-package-1.0.i386-1.rpm
If the package you want to install has several make and install steps, you can string together several commands.
Example: chrony-1.2.0 (atomic clock synchronization)
After ./configure <options>, the commands are: make make docs make install make install-docs install-info /opt/info/chrony.info /usr/share/info (where /opt/info is the build directory I've chosen, and /usr/share/info is the system info directory where the info package will be installed). To have checkinstall perform all the steps to include in the package you want to make, you can:
cd to the source directory (in this case: cd chrony-1.2.0).
checkinstall <options> "make && make docs install install-docs install-info /opt/info/chrony.info /usr/share/info".
cd to the source directory (chrony-1.2.0).
You can put all the commands in a file called "install.sh", or, better yet, chronyinstall.sh, to avoid confusing it with any other 'install.sh' on your system..
Example: give it execute permissions (chmod 755 install.sh), then run it with checkinstall.
checkinstall <options> ./install.sh
Note to self: will it still work if the first line in the file is ./configure <options> ?
Response to self: Yes, it will work. Include the ./configure <options> as the first line in the install.sh file, and watch checkinstall work it's magic. If you use the --bk option with checkinstall, checkinstall will make a backup tarball of all files before changes are made. SAVE THAT TARBALL SOMEWHERE! The file will be named 'backup-(month-day-year-time)-pre-<filename>.tgz'. If you need to restore your system, you can use tar to edit that tarball to remove files belonging to <filename>, then restore the remainder.
tar -x (extract) -C (directory where the tarball resides) -f (archive name) -p (--same-permissions) -P (--absolute-paths - don't strip leading / from file names) --same-owner -v (be verbose) --ungzip (filter through gzip)
Last edited by bigrigdriver; 09-08-2004 at 08:23 AM.