Message Board -  Archive

[ Login ] [ Create Account ]
[ Board List ] [ View Board ] [ Post Reply ]
  Author  Subject: Re: RPM question

Posted on 05-17-2003 01:52 a.m. ET  reply

Original Poster: Mark Krentel

> Last week I downloaded the free RealPlayer pkg with file name:
> rp8_linux20_libc6_i386_cs2.rpm
> I tried to install by using command:
> >rpm -i rp8_linux20_libc6_i386_cs2.rpm
> Result was: Segmentation fault

Something is fouled up here. An RPM package install can certainly
fail, but it shouldn't seg fault.

Can you run other rpm commands? Or is it just that one that died?
Try "rpm -q -a" to see if it gives a sane answer (it should list all
your installed packages). Try other random rpm queries to see if they
still work.

> Something seems sick with my RPM stuff. Do you recommend I reinstall
> REDHAT 9(with same 3 CD's we used the first time) ??

Reinstalling should always be a last resort, and I don't (yet) see any
urgent reason to do so here. Of course, rpm is a rather serious part
of the system and you may have to feel your way through getting it
back into order.

Read "man rpm" for the query and verify options. Try "rpm -V rpm" to
check the integrity of the rpm package. The output is a list of files
that differ from the original package install. In this case, the list
shouldn't include anything more than some database files (which will
always change any time you install something). If it spews lots of
files, especially /bin/rpm, then reinstall the rpm package.

See if you have the rpmdb-redhat package installed or look for it on
the CDs. "rpm -q rpmdb-redhat" will tell you if it's installed,
assuming the rpm binary still mostly works. If it is, then
/usr/lib/rpmdb/i386-redhat-linux/redhat should contain a fresh copy of
the database for all the RH packages. Your system's database is in
/var/lib/rpm. So, you could copy the /usr/lib version into /var/lib
(moving the existing /var/lib/rpm out of the way first!). As I
recall, you installed all packages (a good idea if you have infinite
disk space), so that would restore your system database to a
consistent state that includes all packages.

And if you can't get rpm working, you can use rpm2cpio to extract the
rpm files and just install them manually with cpio. Read "man cpio",
then "rpm2cpio file.rpm | cpio -i -t" will list the files and
"rpm2cpio file.rpm | cpio -i -d" will extract them.


< Previous 1 Next >

Site Contents