LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   rpm -ivh says installed rpm -e says not installed ??? (https://www.linuxquestions.org/questions/fedora-35/rpm-ivh-says-installed-rpm-e-says-not-installed-267604/)

skog 12-17-2004 11:31 PM

rpm -ivh says installed rpm -e says not installed ???
 
I tried to install a rpm that has a script at the end. User license type stuff little bit of config. I screwed up one part and had to ctrl-C out couldnt go forward and couldnt go back and change the setting i messed up. So I have tried installing again and updating but keep getting errors. How do I clean it all out?

rpm -ivh somerpm.rpm
Preparing... ########################################### [100%]
package somerpm-1.1.0-665 is already installed

rpm -Uvh --force somerpm.rpm
Preparing... ########################################### [100%]
error: %pre(somerpm-1.1.0-665) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping somerpm-1.1.0-665

rpm -e somerpm-1.1.0-665.i386.rpm
error: package somerpm-1.1.0-665.i386.rpm is not installed

maxut 12-18-2004 02:15 AM

Re: rpm -ivh says installed rpm -e says not installed ???
 
Quote:

Originally posted by skog

rpm -e somerpm-1.1.0-665.i386.rpm

try:
rpm -e somerpm-1.1.0

skog 12-18-2004 07:15 AM

SH!T !!!!!!

all that time too...


thanks.

misc 12-22-2004 03:52 PM

Don't confuse file names and RPM package names. An RPM package name is only the first part of a filename up to the version number. Commands such as "rpm --erase" only work with package names, not filenames, and optionally added version and release numbers. E.g.

rpm --erase hello
rpm --erase hello-1.0
rpm --erase hello-1.0-5

Not: rpm -e hello-1.0-5.i386.rpm

On to the other error:

Quote:

error: %pre(somerpm-1.1.0-665) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping somerpm-1.1.0-665
A pre-install scriptlet causes an installation failure. You don't want to install such a broken package. You could if you added option --noscripts, but you don't want to.

Search for a working package. Or find the corresponding src.rpm. In it, the broken scriptlet can likely be fixed.


All times are GMT -5. The time now is 07:31 AM.