Method of forcibly deleting RPM package


Delete software

To delete the software is very simple, just execute the following command:

Copy codeThe code is as follows:
# rpm –e xanim

At this time, the user should note that the name of the software is xanim, not the name of the software package xanim-27.64-3.i386.rpm.

If the software to be deleted is required by other software, the user will get the following error message:

Copy codeThe code is as follows:
# rpm –e xanim
error: xanim is needed by mtv-1.0-1

This indicates that if the user deletes xanim, MTV cannot run because some software in xanim is needed for MTV to run.
If the user must delete, you can use the following command:

Copy codeThe code is as follows:
# rpm –e xanim  –nodeps

Upgrade software

If you have previously installed xanim-27063-1.i386.rpm and now get xanim-27064-1.i386.rpm, use the following
To upgrade this package:

Copy codeThe code is as follows:
# rpm –Uhv  xanim-27064-1.i386.rpm

In fact, the – U parameter tells rpm to delete the original version before installing a new version. So no matter whether the software package has been installed before or not, the user
You can use the rpm – UHV command to install the software.  

Here’s a little developeppaer editor to teach you a trick

Rpm is not only a tool for installing / uninstalling programs, but also a good hand in system maintenance and diagnosis. You will learn from the following examples


·What if you delete some files by mistake, but you are not sure which files have been deleted? You can type:

rpm -Va

RPM will display the file deletion on the screen. If you find that some files are missing or damaged, you can reinstall or uninstall first

Then install the package.

·If you encounter a file you don’t know, you can enter the following command to find out which package it belongs to

rpm -qf /usr/X11R6/bin/xjewel

The output will be:


·If the above two examples are combined, for example, there is a problem with the file / usr / bin / paste. You want to know which package contains this article

You can simply type:

rpm -Vf /usr/bin/paste

·If you want to know more about the program you are using, you can type the following command to get the documentation about the program in the package:

rpm -qdf /usr/bin/ispell

The output result is:











·You found a new Koules rpm, but you don’t know what it does. You can type the following command:

rpm -qip koules-1.2-2.i386.rpm

·Now you want to know which files are installed in the system by the RPM package of Koules. You can type:

RPM – QLP koules-1.2-2.i386.rpm output result is:











Recommended Today

Swift advanced (XV) extension

The extension in swift is somewhat similar to the category in OC Extension can beenumeration、structural morphology、class、agreementAdd new features□ you can add methods, calculation attributes, subscripts, (convenient) initializers, nested types, protocols, etc What extensions can’t do:□ original functions cannot be overwritten□ you cannot add storage attributes or add attribute observers to existing attributes□ cannot add parent […]