Linux - Newbie This 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! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-13-2009, 04:06 AM
|
#1
|
LQ Newbie
Registered: Oct 2009
Posts: 12
Rep:
|
Checkinstall make install
Helo, i read on Linux Forums that the command checkinstall make install makes a .rpm package from the .tar.gz file then installs the .rpm i.e. it's like u've installed directly from the .rpm. Is this true? And does uninstalling software become a bother when you install directly from .tar.gz files coz i also read that the RPM utility keeps track of what file belongs to where thus making it easier to uninstall after installinfg from .rpms as compared to .tar.gz.
|
|
|
11-13-2009, 04:24 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by FelixSK
Helo, i read on Linux Forums that the command checkinstall make install makes a .rpm package from the .tar.gz file then installs the .rpm i.e. it's like u've installed directly from the .rpm. Is this true?
|
Sorry, I don't use checkinstall, so I can't really comment, other than to say that it appears to be a bit of a hack.
Quote:
And does uninstalling software become a bother when you install directly from .tar.gz
|
Yes, it can do. For this reason there is a nice GNU script called stow. It should be pacakged for your distro. The basic idea with stow is that you install into a different directory for each piece of software that you compile, and then stow makes sym links in to /usr/local. When you want to uninstall you just call stow with -D to remove the sym links, then delete the directory where you installed the actual files.
Quote:
files coz i also read that the RPM utility keeps track of what file belongs to where thus making it easier to uninstall after installinfg from .rpms as compared to .tar.gz.
|
Indeed rpm does.
Cheers,
Evo2.
|
|
|
11-13-2009, 06:50 AM
|
#3
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 218
Rep:
|
I've used checkinstall quite a bit for debian once or twice for redhat before that.
The way I used it was as a substitute for the command 'make install'; so I unpacked the tar.gz file, read the README, did whatever it said up to 'make install' and then instead of that I did 'checkinstall' as root using 'su'.
It does install it using the RPM system and that means that when you want to uninstall it you can use the RPM system and it will get rid of all the files.
Here is where I wrote a bit about using it:
http://www.linuxbasics.org/tutorials...ackage_manager
Last edited by ajlewis2; 11-13-2009 at 06:52 AM.
|
|
|
11-13-2009, 09:41 AM
|
#4
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
Uninstalling stuff that is compiled manually can be very difficult to remove on a package based system. Since rpm does not know about stuff that was not installed with it, one can get into some strange situations.
Stow is hit or miss on which distros it is available on.
Checkinstall is a hack, but it is a hack that works 85%(?) of the time.
If you can compile software it is really not that much more difficult to build a rpm for it. It is well worth one's time to learn how to do this.
|
|
|
11-13-2009, 09:46 AM
|
#5
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by lazlow
Stow is hit or miss on which distros it is available on.
|
Ahh, but it's a single self contained perl script, so installing it by hand is simplicity itself.
Cheers,
Evo2.
|
|
|
11-13-2009, 10:02 AM
|
#6
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 218
Rep:
|
Quote:
Originally Posted by lazlow
If you can compile software it is really not that much more difficult to build a rpm for it. It is well worth one's time to learn how to do this.
|
Checkinstall does make an rpm package. See the README http://www.asic-linux.com.mx/~izto/c...ll/docs/README
Also note that this program has been around since 2000 and has been tried out by a lot of people. I've had 100% success with it. I do agree that it is best to use the package that has been created by your distro. Most of the problems that you have with this manual way of installing are in the compiling stage. You have to get all the development stuff required and the dependencies. But, if you are going to manually install, checkinstall will do the 'make install' part of it in such a way that you will be able to easily uninstall.
I do agree that it would be a good learning experience to make an rpm. There are lots of fun things to learn and do. All I'm saying is my opinion is that one should not run 'make install' but instead use 'checkinstall'.
|
|
|
11-13-2009, 10:15 AM
|
#7
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
If you would read your own link you will see:
Quote:
RPM or Debian compatible package
|
Note that it says "compatible package" and not an actual rpm. IF you actually examine the "rpms"(open them up) it generates, you can see the difference. Do not get me wrong it is an ok tool and for me it worked about 85% of the time(stuff that would install manually 100%). but considering that building an rpm is really not that much more work and that it works 100% of the time(assuming you can compile it), checkinstall is just not worth the effort.
|
|
|
11-13-2009, 11:22 AM
|
#8
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 218
Rep:
|
Quote:
Originally Posted by lazlow
Do not get me wrong it is an ok tool and for me it worked about 85% of the time(stuff that would install manually 100%).
|
Ok, I never actually examined the inside. I just noted that it had .deb on the end of the file and could be installed with dpkg. That led me to believe I had a deb package. Ditto for the rpm.
You say that checkinstall worked 85% of the time on stuff that would install manually 100% of the time. I'm confused, because checkinstall uses a manual install basically. You compile and run 'make' manually. Then you run checkinstall instead of 'make install'. So are you saying that 'checkinstall' did not work where 'make install' worked? Maybe we are talking about different ways of using the program.
The other difference is that most of my usage was with debian; and it sounds like you used it mostly with a distro that uses rpm.
I'll let go of my defense of this program, because it has been over 4 years since I used it though I did use it for about 4 years. And it has been more than 8 years since I ran RedHat; so my information is very old.
I hope the original poster got something out of the discussion.
|
|
|
All times are GMT -5. The time now is 12:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|