LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-17-2004, 11:31 PM   #1
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
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
 
Old 12-18-2004, 02:15 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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
 
Old 12-18-2004, 07:15 AM   #3
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Original Poster
Rep: Reputation: 30
SH!T !!!!!!

all that time too...


thanks.
 
Old 12-22-2004, 03:52 PM   #4
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm -ivh vs. rpm -Uvh Eklipz Fedora 6 12-02-2013 01:51 AM
rpm -q not shows installed rpm mla Linux - Software 4 10-31-2004 02:49 PM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 01:17 AM
after rpm -ivh then what brucewayne3210 Linux - Software 2 05-26-2004 07:24 PM
rpm -q claims "installed" but rpm -ivh claims "already installed" topgunjones Linux - Software 3 01-29-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration