LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-24-2006, 11:59 AM   #1
Charlie Spencer
Member
 
Registered: Nov 2003
Location: South Carolina, USA
Distribution: Fedora Core 5
Posts: 106

Rep: Reputation: 15
RH9 s/w install - rpm vs. other install methods


I've got a two-week-old install of Red Hat 9 and I wanted to install Firefox 1.5 last week.

Just for giggles, I downloaded firefox-1.5.0.4.tar.gz from FF's web site. I double-clicked the file and the "File Roller" GUI tool in RH9 extract the files. I double-clicked the "firefox" file and the app started.

Later, in an attempt to "do it right", I downloaded firefox-1.5-dnssec.3.i386.rpm from www.rpmfind.net. At a command line I ran "rpm -ivh firefox-1.5-dnssec.3.i386.rpm". This gave me a list of 10 failed dependencies.

How can the application run without being installed by rpm but fail installation with rpm?

Do I have the wrong rpm file? There were about 80 results for my search of "Firefox" at rpmfind. I picked the first one.

Apparently rpm isn't required to install apps (at least not Firefox), so what purpose does it serve?
 
Old 07-24-2006, 02:27 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
First let me say this, RHL9 is out-dated and Red Hat ended support over two years ago, On top of that by the end of this year Fedora Legacy will stop supporting it also, they are one of the few places where one can bring this dying OS current, please do so ASAP;

http://lwn.net/Articles/192524/

Please visit and learn how to use apt/yum and bring your system current;

http://www.fedoralegacy.org/

This should (hopefully) solve your dependency issue.

Second rpm is Red hat's Package Management tool which in part maintains a database for (cough) easy package installation/removal/updating. Yes, you can install software by other means but this does not keep the database updated. In fact you may end up with two versions of firefox-1.5.0.4, the one you installed and the rpm your trying to install.

Since your installation is only a couple of weeks old my I suggest that you install something that has a bit more life then the end of this year. If staying in the Red Hat family please consider Fedora Core 4 or 5 or maybe CentOS (longer support life then Fedora). Both are freely available for download and are as easy (really easier) to install as RHL9 and supports more hardware, since they are newer and actively supported.

http://www.centos.org/
http://fedora.redhat.com/
 
Old 07-24-2006, 03:27 PM   #3
Charlie Spencer
Member
 
Registered: Nov 2003
Location: South Carolina, USA
Distribution: Fedora Core 5
Posts: 106

Original Poster
Rep: Reputation: 15
First, I appreciate your taking the time to respond.

I've got FC5 on order but I had RH9 lying around from an attempt to learn Linux a few years ago. I'm assuming the knowledge I gain at the command line with this distro will apply equally to new distros. That's why I'm playing with rpm.

But I can't figure out why the un-tarred install runs but the attempt to install with rpm crashes. I assume the necessary dependencies are there; wouldn't the un-tarred install crash if they weren't? Why can't rpm find them? I don't know what browser comes in FC5, but I assume I'll have to go through this again to get FF installed. I'm trying to understand why doing it "wrong" works but doing it through the package manager doesn't.

I thought apt was for Debian-based distros. What's yum, and should I worry about either of them when FC5 arrives? And will I be able to install either, given my rpm problems with FF?

Thanks.
 
Old 07-24-2006, 05:36 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Quote:
Originally Posted by Charlie Spencer
First, I appreciate your taking the time to respond.

I've got FC5 on order but I had RH9 lying around from an attempt to learn Linux a few years ago. I'm assuming the knowledge I gain at the command line with this distro will apply equally to new distros. That's why I'm playing with rpm.
Yes the commands are basically the same, but if you want to learn some more about rpm type 'man rpm' minus the single quotemarks in the console or xterm session.

Quote:
But I can't figure out why the un-tarred install runs but the attempt to install with rpm crashes. I assume the necessary dependencies are there; wouldn't the un-tarred install crash if they weren't? Why can't rpm find them? I don't know what browser comes in FC5, but I assume I'll have to go through this again to get FF installed. I'm trying to understand why doing it "wrong" works but doing it through the package manager doesn't.
Well to start with the version of rpm that came with RHL9 is not the best tool to use to solve dependency issues, that why both apt and yum have been ported to the Red Hat Family.

Many times for various reasons when the binary rpms are created the creator(s) want to make sure you have all the needed libs for something to work right and sometimes they go a bit overboard, as in the case for firefox. You can build your own rpm for firefox-1.5.0.4 if you want, I tell you how at the end of this, but first bring the RHL9 current by visiting Fedora Legacy.

The firefox installation from the tar file only requires libstdc++.so.5 which part of the standard installation.

FC5 comes with a version of firefox and the current version is;

http://download.fedora.redhat.com/pu...2.fc5.i386.rpm

Quote:
I thought apt was for Debian-based distros. What's yum, and should I worry about either of them when FC5 arrives? And will I be able to install either, given my rpm problems with FF?
Yes apt was for (just) Debian-based disros, but has been ported to other distors now. Yum is short for Yellow dog Updater, Modified and has a web page to explain itself, this has been ported also. In fact the Fedora Core family makes use of this for updating rpm packages now.

http://fedora.redhat.com/docs/yum/en/



OK, as promised here's howto create your own firefox-1.5.0.4 rpm file;

You already have the firefox-1.5.0.4 tar file so you need to visit;

http://www.fedoranews.org/tchung/firefox/1.5.0.1/

and download all three files. The spec file goes in /usr/src/redhat/SPECS
The other two and the firefox tar file goes in /usr/src/redhat/SOURCES

The firefox.spec file needs a little editing, just enough to relfect the firefox version change. Any text can used to make and save this change. If not already installed install the rpm-build-4.2-0.69.i386.rpm (as root of course). When ready type something like; rpmbuild -bb firefox.spec

Please check the rpmbuild command, I'm not 100% sure this is the right command for RHL9, as it has been a long time since I have used RHL9.

FYI: If you choose to install either apt or yum then installing rpm packages in many cases be comes as simple as, for example;

yum -y install rpm-build
apt install rpm-build

Last edited by Lenard; 07-24-2006 at 05:40 PM.
 
  


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
How do I install .rpm packages using RH9? ScottyKUtah Linux - Newbie 3 08-08-2004 09:09 AM
Kopete configuration unclear in RH9 after rpm install corso64 Linux - Newbie 1 06-10-2004 02:11 PM
How do you install .rpm by command line (RH9.0) Thaidog Linux - Newbie 5 05-18-2004 06:28 AM
RPM install on RH9 fails hotblack Linux - Software 6 09-02-2003 04:02 AM
Please help with PHP/Oracle RPM install on RH9 pnovess Linux - Newbie 0 08-08-2003 05:54 PM


All times are GMT -5. The time now is 08:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration