Click to See Complete Forum and Search --> : My RPM is screwed


tobim
02-21-2003, 10:42 AM
In RHL 8, I did something EXTREMELY STUPID (please don't ask why). I unpacked a new tarball containing RPM. Now it seems like all the info that my old rpm used to have is gone, since it thinks that stuff like /bin/bash is not installed.

Am I screwed? Do I need to reinstall the OS? Or is there some other way to tell RPM, that this stuff IS actually installed and it just doesn't know about it?

Icarus
02-21-2003, 11:04 AM
Try this, this will rebuild the RPM database from scratch...

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

Good luck!

tobim
02-21-2003, 12:32 PM
Hmmm...

Tha didn't seem to work. I still don't have anything in the database. At least nothing comes out when I go

rpm -q -a

Anything else I could do.

tobim
02-21-2003, 12:34 PM
I have a directory called rpm.rpmsave

Will that do me any good? Does that have an old copy of a database in it or something?

Also, my graphical package utility, as well as my update agent crash, since I have had this problem.

chrism01
02-21-2003, 02:58 PM
From Tech suppt forum a week ago:

Quote:

rpmbuild --rebuild

I have found out that Red Hat took --rebuild out of the rpm options and then moved it to rpmbuild. I have also heard that this only goes for certain RH 8 releases. Some have both, some have it just as an rpmbuild option.

unquote


:)

Hayl
02-21-2003, 03:24 PM
does this happen all the time with the rpm database?

i see at least 2 of these posts a week on average.

(or is it just a concidence tha ti an noticing them?)

jhogan
02-21-2003, 03:34 PM
Insert the install CD, and reboot. Proceded into the install, selecting "Upgrade existing system", this *should* put rpm back in order.

--jeremy

tobim
02-21-2003, 03:55 PM
Afraid not, actually. Also tried that one. Still no joy. I can trick it into thinking that it has the major packages installed by using

rpm -Uvh --nodeps --justdb

on a whole bunch of packages. But then it still thinks it's missing really basic stuff like /bin/bash and several rpmlib's .

Something is just really screwed up.

Raoul_Duke
02-21-2003, 06:58 PM
Originally posted by Hayl
does this happen all the time with the rpm database?

i see at least 2 of these posts a week on average.

(or is it just a concidence tha ti an noticing them?)

Nope it happens quite a lot :p

Until i discovered apt-rpm and synaptic......i was gonna trash my RedHat8 install.

Not that it compares to portage of course ;)

tobim
02-21-2003, 07:42 PM
OK, tell me more. What are you talking about and will it solve my problem?

Icarus
02-21-2003, 07:56 PM
I like apt-get for Red Hat myself :)

ftp://ftp.freshrpms.net/pub/apt/redhat/

if the RPM installs...

apt-get update
apt-get install synaptic

This still uses RPM but does most of the work for you, including solving and installing dependancies