Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-16-2007, 06:42 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2006
Location: US
Distribution: CentOS
Posts: 29
Rep:
|
Updating packages built from source
I have built and installed many packages from source, but am afraid I am almost completely ignorant as to how to best upgrade them...I have done many searches and really don't find much (which makes me think...). I will gratefully accept links to how-to's or other docs. RPM makes this easy, but there are certain packages I must build... on a similar note, what is the procedure to uninstall a package built from source?
A.L.
|
|
|
|
02-16-2007, 08:24 PM
|
#2
|
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,663
Rep: 
|
I use this neat little program called InstallWatch to keep track of everything a package installs. Here's a link to the latest tarball http://asic-linux.com.mx/~izto/check...h-0.6.3.tar.gz. It is also used by a program called CheckInstall (IIRC) that will allow you to create rpm, deb, and tgz's of what you build.
I run a CLFS box most of the time (no package manager) and use InstallWatch all by itself to create log files in /var/log/CBLFS. I then have a couple of homegrown scripts. One cleans up the InstallWatch generated file and the other uses this information to remove all the files if I want. This approach doesn't take care of dependencies. I use an OOo spreadsheet for that!
Upgrading depends on the scope of the upgrade, IMO. "Big" upgrades like GNOME-2.14 to GNOME-2.16 requires a different strategy than upgrading appres-1.0.0 to appres-1.0.1. I install GNOME-2.14 in /opt/gnome-2.14 and make /opt/gnome a symlink to that directory. GNOME-2.16 then goes into /opt/gnome-2.16 and the symlink is changed. With my high-tech spreadsheet-based dependency tracker, I can figure out what apps depend on GNOME components and then rebuild them against the new GNOME stuff. Usually, I just wait until it pukes and then think, "Oh, yeah, I've got a new version of GNOME."
|
|
|
|
02-16-2007, 08:57 PM
|
#3
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,231
|
Quote:
|
Originally Posted by Arow
Usually, I just wait until it pukes and then think, "Oh, yeah, I've got a new version of GNOME."
|
As for uninstalling, check the readme - yes all of them. Hopefully the makefile has a stanza(s) to do cleanup/delete. And of course they're all (potentially) different.
|
|
|
|
02-16-2007, 09:37 PM
|
#4
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Most packages will also come with an UPGRADE file in the tarball (or something similar). I've found some of these to be very useful through to a waste of electricity in displaying
|
|
|
|
02-17-2007, 02:03 PM
|
#5
|
|
LQ Newbie
Registered: Aug 2006
Location: US
Distribution: CentOS
Posts: 29
Original Poster
Rep:
|
Quote:
|
Originally Posted by Arow
I then have a couple of homegrown scripts. One cleans up the InstallWatch generated file and the other uses this information to remove all the files if I want.
|
Would you share your scripts? And thanks for the excellent answer.
Oh, I read the README for checkinstall and am a little unclear... does it actually incorporate installwatch in it's code or does installwatch need to be installed seperately?
-AL
Last edited by aolong; 02-17-2007 at 02:40 PM.
|
|
|
|
02-19-2007, 11:49 AM
|
#6
|
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,663
Rep: 
|
I don't use CheckInstall, so I really don't know how it uses InstallWatch.
Here is a tarball with my scripts...
http://webpages.charter.net/weibullg...ch-0.2.tar.bz2
|
|
|
|
02-20-2007, 05:22 AM
|
#7
|
|
LQ Newbie
Registered: Aug 2006
Location: US
Distribution: CentOS
Posts: 29
Original Poster
Rep:
|
Quote:
|
Originally Posted by Arow
Here is a tarball with my scripts...
|
Thanks for sharing this.
-AL
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:16 AM.
|
|
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
|
|