Koozali.org: home of the SME Server

reinstalling rpm

trenskow

reinstalling rpm
« on: August 21, 2004, 10:48:16 PM »
Hi there

i was trying to install yum o my box, and acidently hit ctrl-c

i wabt to install it again, but when i rpm -ivh * it returns
"package rpm-python-4.0.4-7x.18 is already installed
package smeserver-yum-1.0.0-03dmay is already installed
package yum-1.0.3-1_73 is already installed"
same with rpm -Uvh *

but when i try to rpm -e * i get
"error: package rpm-python-4.0.4-7x.18.i386.rpm is not installed
error: package smeserver-yum-1.0.0-03dmay.noarch.rpm is not installed
error: package yum-1.0.3-1_73.noarch.rpm is not installed"

what to do?

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
reinstalling rpm
« Reply #1 on: August 22, 2004, 02:10:28 AM »
I beleive if you use rpm -ivh --force *.rpm that should force the re-install.
If you think you know whats going on, you obviously have no idea whats going on!

cc_skavenger

rpm reinstall
« Reply #2 on: August 22, 2004, 04:59:40 AM »
you can use rpm -Uvh --replacepkgs *.rpm also.

HTH

big_gie

reinstalling rpm
« Reply #3 on: August 22, 2004, 05:06:20 AM »
You made the same error as me yesterday: when issuing the "rpm -e" command, you need not to include the ".noarch.rpm" from the file! :D

So uninstalling should look like:
Code: [Select]
rpm -e rpm-python-4.0.4-7x.18
rpm -e smeserver-yum-1.0.0-03dmay
rpm -e yum-1.0.3-1_73


You can also check the correct package name using:
Code: [Select]
rpm -q python
rpm -q yum
(I think) as "-q" is for "query"

Hoped it helped! :D