Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: trenskow on August 21, 2004, 10:48:16 PM

Title: reinstalling rpm
Post by: trenskow 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?
Title: reinstalling rpm
Post by: crazybob on August 22, 2004, 02:10:28 AM
I beleive if you use rpm -ivh --force *.rpm that should force the re-install.
Title: rpm reinstall
Post by: cc_skavenger on August 22, 2004, 04:59:40 AM
you can use rpm -Uvh --replacepkgs *.rpm also.

HTH
Title: reinstalling rpm
Post by: big_gie 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