SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed the Checkinstall package as suggested by shade and now I have a couple of questions. When it installed a program for me it defaulted to i386 architecture and gave me an option to change this to whatever I wanted. I choose i686. Is this right? I have an Athlon 1.4GHz, I recently built my own kernel and selected the architecture there as Athlon. Does this mean all the packages I have built myself from source without checkinstall are optimized for i386? I thought they were built by whatever was the selected architecture in the kernel? How can I change it so that all future packages use i686 or Athlon optimizations?
Also when I build packages from source I know it is ok to remove the original tar.gz file but is it ok to remove the directory created when I unzip the tar.gz archive (The one which the build takes place in)? i.e are the binary and configuration files automatically copied across to where they need to go? Is this the same if I use checkinstall? At the minute all I do is make clean as suggested in most Readme files.
You select your processor options during the ./configure stage. If you do ./configure --help, you will get a list of compilation options for that particular package.
Re: Building programs from source and checkinstall
Quote:
Originally posted by changcheh I recently installed the Checkinstall package as suggested by shade and now I have a couple of questions. When it installed a program for me it defaulted to i386 architecture and gave me an option to change this to whatever I wanted. I choose i686. Is this right? I have an Athlon 1.4GHz, I recently built my own kernel and selected the architecture there as Athlon. Does this mean all the packages I have built myself from source without checkinstall are optimized for i386? I thought they were built by whatever was the selected architecture in the kernel? How can I change it so that all future packages use i686 or Athlon optimizations?
Also when I build packages from source I know it is ok to remove the original tar.gz file but is it ok to remove the directory created when I unzip the tar.gz archive (The one which the build takes place in)? i.e are the binary and configuration files automatically copied across to where they need to go? Is this the same if I use checkinstall? At the minute all I do is make clean as suggested in most Readme files.
Thank you
The checkinstallrc file : /usr/lib/checkinstall/checkinstallrc
...allows many options.
As far as some of your other Qs, I am not sure but I think it is taken care of during compile, and it just asks where to place the packages. Make sure that you use a lower case "a" in athlon or you will end up with two athlon/Athlon dirs.
####################################################################
# These are default settings for CheckInstall, modify them as you #
# need. Remember that command line switches will override them. #
####################################################################
# Debug level
# 0: No debug
# 1: Keep all temp files except the package's files
# 2: Keep the package's files too
DEBUG=0
# Location of the "installwatch" program
INSTALLWATCH_PREFIX="/usr/"
INSTALLWATCH=${INSTALLWATCH_PREFIX}/bin/installwatch
# Location of the makepkg program. "makepak" is the default, and is
# included with checkinstall. If you want to use Slackware's native "makepkg"
# then set this to "makepkg"
MAKEPKG=/usr/sbin/makepak
# Where will we keep our temp files?
BASE_TMP_DIR=/var/tmp ## Don't set this to /tmp or / !!
# Where to place the installed document files
DOC_DIR="/home/joseph/CI_ProgramsDocs"
# Default architecture type (Leave it empty to allow auto-guessing)
ARCHITECTURE="athlon"
# Default package type. Leave it empty to enable asking everytime
# S : Slackware
# R : RPM
# D : Debian
INSTYPE="R"
# Storage directory for newly created packages
# By default they will be stored at the default
# location defined for the package type
Thank you to you both. I've spent the last hour reading up on CFLAGS. I'm going to use the -o2 optimizations with -march = athlon-tbird and build with the -pipe flag to try and speed up the compiles.
I found the checkinstall file was in /usr/local/lib/checkinstall/checkinstall.rc under slackware 9.1 after a quick dip into the checkinstall docs .
I was unable to install Checkinstall. There was no Isntall script in the package (file is checkinstall-1.5.3-i386-1.tgz). How to install it?
thanks in advance
Originally posted by fuelinux I was unable to install Checkinstall. There was no Isntall script in the package (file is checkinstall-1.5.3-i386-1.tgz). How to install it?
thanks in advance
You can install it using pkgtool, or "installpkg checkinstall-1.5.3-i386-1.tgz"
You can also type something like "īnstallpkg checkins*" in case you don't know this. The * replaces the rest of the filename.
pkgtool doesn't see checkinstall's package. it only lists packages from Slack's original distro.
i'll try other options you have listed. do i have to be in the same directory as checkinstall's tarball is?
thanks
Re: Building programs from source and checkinstall
Quote:
Originally posted by changcheh Also when I build packages from source I know it is ok to remove the original tar.gz file but is it ok to remove the directory created when I unzip the tar.gz archive (The one which the build takes place in)? i.e are the binary and configuration files automatically copied across to where they need to go?
Yes, it's ok to remove the directory. You just won't be able to uninstall it short of deleting files from /usr/bin or /usr/local/bin.
Quote:
Is this the same if I use checkinstall? At the minute all I do is make clean as suggested in most Readme files.
With checkinstall, here's what I've been doing. I have installed and uninstalled packages successfully.
Download the tar.gz or tar.bz2 file to /home/jeramy/downloads
Extract it (/home/jeramy/downloads/newprogram)
cd to that folder
Do ./configure, and make.
su to root.
Run checkinstall
mv the newly created .tgz package to /opt/packages (Note that this is not necessary; this is just where I've been putting my packages)
exit to my user account
cd ..
rm -rf newprogram
If I want to uninstall a package, I just type
removepkg newprogram
and voilā!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.