LinuxQuestions.org
Help answer threads with 0 replies.
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 06-30-2011, 08:06 AM   #1
quophyie
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Talking RPM software manager upgrade from v4.4.2 to 4.9.0 database import problem on RHEL5


Hi All

I am new to this forum so bear with me if make mistakes. I am running RHEL5 and I have just upgraded my RPM software manager from RPM version 4.4.2 to RPM version 4.9.0 (the latest version) by doing a clean install of v4.9.0. The version 4.4.2 came with the RHEL5 and at the moment is very old so I cannot install certain newer rpms. I followed the INSTALL instructions that comes with the tarball for V4.9.0. The problem is the new install(i.e. RPM V4.9.0) has no knowledge of my old RPM manager i.e. V4.4.2, hence it does not know of the rpm packages installed on my system (DISASTEROUS!!!). I think the problem is that the V4.9.0 is a new install rather than an upgrade (There are no instructions on how to perform a 'real' upgrade) . I have tried to rebuild the rpmdb for v4.9.0 but that does not help and I have no idea how to import the data from v4.4.2 database to v4.9.0 database (I believe its not a traditional relational DB but I might be wrong)

My question is, how do I import the database from RPM manager V4.2.2 into RPM manager V4.9.0 or how do I 'upgrade'properly from V4.4.2 to V4.9.0. I have trawled the internet for some guides but there does not seem to be anything regarding this. I will be suprised if i am the only person whose ever had to do this :-). Anyway, I was hoping that one of you gurus would have some idea of where I have gone wrong or what I need to do rectify this annoying problem.

Any help at all will be very welcome.

Regards

Quophyie
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-30-2011, 08:29 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,870
Blog Entries: 14

Rep: Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112
This seems a bit confused. RHEL is a commercial distribution and you should be using "yum" to access the repositories at RedHat Network (RHN). That requires a paid subscription. You can NOT just apply any rpm you find to a RHEL system - it must be one that was built for the version of RHEL you are running. While there are other repositories (e.g. EPEL at Fedora) and individual rpms built for RHEL you should be aware these are not supported by RedHat so using them risks making your system unsupported. I've been using RHEL since RHEL 2.x and have never needed to upgrade an "rpm software manager" beyond what is provided in RHEL repositories.

Also you need to understand the way RHEL does things. Although you might see something like "rpm-4.4.2.3-22.el5" and think you have version 4.4.2.3 of rpm what you actually have is RedHat's version of 4.4.2.3 which has been modified (typically with security and bug fixes at least) to include features that weren't in the base package but may be in later packages. (As denoted by the -22.el5.) We run into issues with this sometimes as security scans look only at the base version and don't recognize the fact that the RHEL versioning is more than the base version and have to prove the RHEL version has actually addressed specific CVEs.

If you don't have a paid subscription to RedHat and don't want RedHat support you should use CentOS5 as it is compiled from RHEL source and has free repositories.

I'd suggest at this point you remove the 4.9.0 you installed.

Last edited by MensaWater; 06-30-2011 at 08:31 AM.
 
2 members found this post helpful.
Old 06-30-2011, 10:38 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
Also : When some software.rpm cannot use RPM version 4.4.2,
but asks for version 4.7, don't expect the software to work in EL5.

Packages with "el5" in the name will usually do.
( Like gcc-4.1.2-46.el5.i386.rpm )

Package install method for EL5 : # yum install <name>
EL5 is not usable without the paid account :
As already said by @MensaWater : Install the free version of RHEL 5 instead :
CentOS 5.6 http://www.centos.org/

..
 
1 members found this post helpful.
Old 06-30-2011, 11:08 AM   #4
quophyie
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Talking

Thanks for the quick reply MensaWater. It makes certain things easier to understand. Anyway, my problems started when I tried into mozilla firefox 5. I kept getting error

Code:
[root@dev23 firefox]# ./firefox-bin: /usr/lib/libstdc++.so.6: version `GLIBCXX_3
.4.9' not found (required by /home/oracle/Downloads/Firefox/firefox5/firefox/lib
xul.so)
After googling a little, I found that I had to install GLIBCXX_3.4.9. This lead me into thinking that I had to install libstdc++-4.6.0-7.fc15.i686.rpm but that RPM would not install because it complained about some dependencies which were in newer versions of the RPM manager i.e. v4.6.x and above.

Anyway, after reading your post, I realised that it may not be the RPM software which was broken but probably the packages(Firefox5) that I was trying to install were probably not built for RHEL5.

Anyway, I have managed to solve the firefox install problem becuase apparently firefox 4 and firefox 5 have not been built for RHEL5/CentOS5. I did however manage to get the firefox 5 working by following the instructions at http://forums.mozillazine.org/viewto...f=23&t=2075033

***Note that anyone reading the instructions at http://forums.mozillazine.org/viewto...f=23&t=2075033, you will have to create a symlink (i.e. libstdc++.so.6 -should be placed in /usr/lib) to /usr/lib/libstdc++.so.6.0.10 to get firefox4 and above on RHEL/CentOS5 to get it working

Thanks for the help MensaWater. I spent a a few days trying to solve this but had it not been for your reply, i may have spent a few more days going around in circles.

Regards

Quophyie
 
1 members found this post helpful.
Old 06-30-2011, 12:44 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,870
Blog Entries: 14

Rep: Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112
Glad I could help.

Thanks for posting your solution and marking the thread as Solved. It helps others when doing web searches.
 
  


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
A complete Software listing for a RHEL5 box (NOT an RPM/package dump) the_unforgiven7352 Red Hat 3 08-31-2010 06:27 PM
Install RPM with YAST Software / Package Manager ERROR! Balarabay1 SUSE / openSUSE 5 07-10-2006 03:34 PM
RPM database after kernel upgrade maenho Linux - Software 0 05-13-2004 02:05 AM
RPM Database problem BajaNick Red Hat 6 09-05-2003 03:46 AM
is there an rpm software manager for redhat 8? kublador Linux - Software 10 07-26-2003 04:30 PM


All times are GMT -5. The time now is 12:08 PM.

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