Red HatThis forum is for the discussion of Red Hat Linux.
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.
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.
i don't know what happened but the result is here:
Code:
[root@armansoft apache-tomcat-7.0.25]# tar cvf /tmp/rpmdb.tar /var/lib/rpm/__db.00*
tar: Removing leading `/' from member names
tar: /var/lib/rpm/__db.00*: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
[root@armansoft apache-tomcat-7.0.25]# rm -f /var/lib/rpm/__db.00*
[root@armansoft apache-tomcat-7.0.25]# rpm -qa
[root@armansoft apache-tomcat-7.0.25]#
Why are you even trying to back up the rpm database when the program "rpm" is not working ??
if it is not working you can NOT update the rpm database
IF yum and rpm ever worked ( i do not know if they ever did )
if they DID in the past work then you did "something" most likely installed something that was VERY incompatible
( rpmforge and random rpms from the net can do this )
if they NEVER worked
something is VERY VERY WRONG with the install
and the TWO programs needed to fix it are NOT WORKING
i would reinstall with CentOS 6.3
seeing as you would have HAD to upgrade cent anyway , with 6.2 now past it's END OF LIFE
one thing you can try is this
but it is NOT going to fix it
Code:
strace rpm
you "should get a very long output
at the beginning though will be something that looks like this
Yes,they worked in the past. is there any way to upgrade to 6.3 without losing installed program like cvs, tomcat, postgres , ...?
Quote:
Originally Posted by John VV
A question???
Why are you even trying to back up the rpm database when the program "rpm" is not working ??
if it is not working you can NOT update the rpm database
IF yum and rpm ever worked ( i do not know if they ever did )
if they DID in the past work then you did "something" most likely installed something that was VERY incompatible
( rpmforge and random rpms from the net can do this )
if they NEVER worked
something is VERY VERY WRONG with the install
and the TWO programs needed to fix it are NOT WORKING
i would reinstall with CentOS 6.3
seeing as you would have HAD to upgrade cent anyway , with 6.2 now past it's END OF LIFE
one thing you can try is this
but it is NOT going to fix it
Code:
strace rpm
you "should get a very long output
at the beginning though will be something that looks like this
Yes,they worked in the past. is there any way to upgrade to 6.3 without losing installed program like cvs, tomcat, postgres , ...?
Since the yum.log suggests this was working a week ago, did you manage to clean the yum cache as a last action? The reason I ask is, it looks like ( from the strace log) that rpm never even gets to those dirs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.