Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
08-30-2003, 07:16 PM
|
#1
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Rep:
|
Installing software: RPM vs source
Hello everyone. I wanted to start a thread to share my experiences as well as gain some insight on a few things I would like to do...
As it is right now, I run about a dozen Linux servers, most running Red Hat. All the servers are running great, but if there is one thing that really drives me crazy at times, it is when I am trying to install certain parts of software or upgrade certain parts of software...
Yes, I admint, RPM's can make life easy sometimes. But sometimes, they can make life a living hell. At this point, I prefer to install all software now from source. I have more control and flexability over it and I usually run into many many less problems (ala, RPM Dependency hell)...
So here is what I want to know/learn...
First, i'd like to learn how to start building my own RPM's and Source RPMS from source tarballs. I know how to take a source RPM and build binary RPMS, but I want to learn how to go out, fetch the latest source tarball for foo.tar.gz and build Source RPMS and binary RPMS....I have ordered Maximum RPM as well as the new RH RPM book...any other suggestions?
Ok...more importantly.
What I want to know is, what is the best way to update software on my servers that has been installed via RPM, but not use Red Hats up2date system?
For example: One of my servers is RH 7.3. The latest release for OpenSSH for 7.3 is like 3.1 or something like that, which is way old and I want to run current software.
With that in mind, what is a good way that I can grab the source pacakge for lets say openssh, and then install it on my server? Basically, upgrading my current openssh with the new one. I'd also like to maintain a 'clean' system and remove any old junk from the openssh 3.1 package...
Anyone have some tips or better yet, links on how to do this?
I appreciate it...
Tarballed
|
|
|
08-30-2003, 07:22 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
Quote:
First, i'd like to learn how to start building my own RPM's and Source RPMS from source tarballs.
|
from my experience, the author has to follow a few guidelines in order for you to make rpms from a tarball. but if the requirements are met then using the command while su'ed as root will make binary and source rpms.
'rpm -ta source.tar.gz'
examples of source tarballs that you can build rpms out of are xine and xscreensaver.
as far as taking tarballs not ready for making rpms, i'm not sure how to go about that.
Last edited by megaspaz; 08-30-2003 at 07:23 PM.
|
|
|
08-30-2003, 07:31 PM
|
#3
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
Quote:
from my experience, the author has to follow a few guidelines in order for you to make rpms from a tarball. but if the requirements are met then using the command while su'ed as root will make binary and source rpms.
|
Right...I recall that reading that some where...
Other than that, any idea on how to upgrade software that has been installed via RPM, but using source to update?
I get tired of waiting for updated rpms to be released...
Tarballed
|
|
|
08-30-2003, 07:41 PM
|
#4
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
Quote:
Originally posted by tarballed
Right...I recall that reading that some where...
Other than that, any idea on how to upgrade software that has been installed via RPM, but using source to update?
I get tired of waiting for updated rpms to be released...
Tarballed
|
the only thing i can think of is to try to uninstall the old version and then upgrade using the source tarball as you can't be too sure that the distros didn't use other target directories than the author uses in the source. i had a problem once with upgrading xscreensaver because red hat installs xscreensaver in other directories than where the source specified. so i kept getting the wrong password prompt which had the old version number while xscreensaver-demo had the new version number. plus, the rpm database only had the old version of xscreensaver listed. that was compiling from source and installing from source (before i even thought of using rpm -ta). i then figured out xscreensaver rpms could be built and that solves those issues above.
but if you want to have upgrade in the rpm database, the only thing i can think of is to figure out what requirements need to be met for a source tarball to be compiled to rpms.
|
|
|
08-30-2003, 08:14 PM
|
#5
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
If you want to upgrade from source the best thing to do is uninstall the old version with rpm -e then install the source package.
If you go ahead and install the source package, it will most likely not replace but instead install into a different directory. When you do a "make install" make sure you write down where it was installed. If two versions of the same program are installed you will have to use the absolute path to execute the new one. This has happened to me more than once. For instance I had a version of the ice window manager installed via rpm then I installed a newer one via source. The RPM version is in
/usr/X11R6/bin/icewm and /usr/bin/X11/icewm
the one from source in
/usr/local/bin/icewm
so to use the new one in .xinitrc I have to
exec /usr/local/bin/icewm
|
|
|
08-31-2003, 01:09 PM
|
#6
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
So basically, if you install via RPM and there is not an updated pacakages, you have two options:
1.) Try and build your own binary RPMS from the latest source release (build src.rpm or just .rpm)
2.) Uninstall the RPM and install the source..
SO is the moral of the story this:
'Dont mix RPMS and Source?"
Tarballed
|
|
|
08-31-2003, 02:58 PM
|
#7
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
|
|
|
All times are GMT -5. The time now is 04:35 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
|
|