LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-30-2003, 07:16 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
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
 
Old 08-30-2003, 07:22 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 08-30-2003, 07:31 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
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
 
Old 08-30-2003, 07:41 PM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 08-30-2003, 08:14 PM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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
 
Old 08-31-2003, 01:09 PM   #6
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
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
 
Old 08-31-2003, 02:58 PM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Check out these two apps

Check install
http://asic-linux.com.mx/~izto/checkinstall/

APT-RPM
http://apt-rpm.tuxfamily.org/scripts/apt-rpm.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM and Source tarball software...best practice? tigemac Linux - Software 1 10-06-2005 04:08 PM
installing source rpm Deer Linux - Newbie 1 09-25-2003 12:30 PM
Installing Kernel Source RPM eats85 Linux - Newbie 3 08-27-2003 01:04 PM
Installing using both RPM and compile from source Silly22 Linux - Newbie 1 07-24-2003 04:53 PM
installing a source rpm Daem0hn Linux - General 2 07-18-2003 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration