Uninstall / remove RPM

21,347

Solution 1

Since you are using CentOS, you may have yum from my knowledge.

I would try the following:

$ su -c 'yum remove packageNameHere'

Solution 2

For CentOS I find it best to use Yum - which, by default, should install the correct version from the CentOS repositories.

If you installed the wrong version using rpm I would also use the rpm command to uninstall it if possible (then try using Yum to install the correct version - if available in centOS repositories).

Solution 3

Look at:

rpm -e --nodeps

or

rpm --force -e

Solution 4

To upgrade the existing package you could try:

rpm -U
Share:
21,347

Related videos on Youtube

Nikko
Author by

Nikko

Updated on September 18, 2022

Comments

  • Nikko
    Nikko over 1 year

    I've installed CentOS 5 on an old IBM ThinkPad. Everything went fine until I had to make the wireless network connection work.

    After searching Google I realise that I need to install RPM. Unfortunately I downloaded and installed the RPM for CentOS 3 - now when I try to reinstall the correct package for version 5, it says:

    File xxx from install of rpmv5 conflicts with the file from package rpmv3

    How can I rollback the RPM v3 installation? I've tried rpm -e without any success.

    The RPMs can be found at: http://rpmforge.sw.be/redhat/

    • Ignacio Vazquez-Abrams
      Ignacio Vazquez-Abrams almost 13 years
      Post the full message please.