Method of forcibly deleting RPM package

Time:2021-10-21

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

Great.

·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:

xjewel-1.6-1

·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:

/usr/man/man4/ispell.4

/usr/man/man4/english.4

/usr/man/man1/unsq.1
/usr/man/man1/tryaffix.1

/usr/man/man1/sq.1

/usr/man/man1/munchlist.1

/usr/man/man1/ispell.1

/usr/man/man1/findaffix.1

/usr/man/man1/buildhash.1

/usr/info/ispell.info.gz

/usr/doc/ispell-3.1.18-1/README

·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:

/usr/man/man6/koules.6

/usr/lib/games/kouleslib/start.raw

/usr/lib/games/kouleslib/end.raw

/usr/lib/games/kouleslib/destroy2.raw

/usr/lib/games/kouleslib/destroy1.raw

/usr/lib/games/kouleslib/creator2.raw

/usr/lib/games/kouleslib/creator1.raw

/usr/lib/games/kouleslib/colize.raw

/usr/lib/games/kouleslib

/usr/games/koules

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 […]