PDA

View Full Version : RPM help



Leetlewon
05-18-2002, 06:00 PM
My /usr directory crashed on me (a single hard drive). So.. I replaced the hard drive, and to save my ipchains & mail & dns configs, plus seq and other downloads I figured I wouldn't reformat other partitions. I could still go back and do this, but it takes 4 hours to install RH on this system....

Anyway, I've got an RPM problem now:

SEQ won't run, and if I try to recompile it says gcc3 isn't installed... if I try to reinstall it says it's already installed. If I try to uninstall it says it's not installed. I tried the --force option to force installation again, but this didn't help. There should be an easy solution to this without having to reformat my partitions again.

[root@azazel rpms]# rpm -ivh gcc3-3.0.1-3.i386.rpm
Preparing... ########################################### [100%]
package gcc3-3.0.1-3 is already installed

[root@azazel rpms]# rpm -ev gcc3-3.0.1-3.i386.rpm
error: package gcc3-3.0.1-3.i386.rpm is not installed
[root@azazel rpms]#

Cryonic
05-18-2002, 06:31 PM
http://www.redhat.com/docs/books/max-rpm/index.html

read and enjoy.

Leetlewon
05-18-2002, 06:39 PM
I figured it out --

rpm -ivh --replacepkgs gcc3-3.0.1-3.i386.rpm

I lost my /usr/lib directory when I reinstalled, so that was the problem. After --replacepkgs SEQ starts up. No need to recompile.

Edit: thanks for the link - I've just been using rpm --help, but there are so many options they're confusing. I had tried forcing uninstallation various ways and reinitializing the db... was getting a little aggravated.