Remove software
To remove the software is very simple, just execute the following command:
Copy Code code as follows:
At this point, the user should be careful to use the name of the software Xanim, rather than the package name xanim-27.64-3.i386.rpm.
If the software you want to remove is required by other software, the user will get an error message similar to the following:
Copy Code code as follows:
# rpm–e Xanim
Error:xanim is needed by mtv-1.0-1
This means that if the user deletes the Xanim, MTV will not be able to run because some of the software in Xanim is needed for MTV to run.
If the user is sure to delete, you can use the following command:
Copy Code code as follows:
Upgrade software
If the user has previously installed xanim-27063-1.i386.rpm and now has xanim-27064-1.i386.rpm, use the following
command to upgrade this package:
Copy Code code as follows:
# RPM–UHV xanim-27064-1.i386.rpm
In fact, the-u parameter tells the rpm to remove the original version first, and then install the new version. So regardless of whether or not the package was previously installed, the user
You can use the RPM–UHV command to install the software.
Below the cloud Habitat Community small weave to teach you a trick
RPM is not only a tool for installing/uninstalling programs, it is also a brilliant at publicity for system maintenance and diagnostics. Look at the following examples and you'll see it.
It's awesome.
· What if you accidentally delete some files, but you're not sure you deleted those files anyway? You can type:
Rpm-va
RPM will display the file deletion on the screen. If you find that some files are missing or corrupted, you can reinstall them or uninstall them first.
Install the package again.
· If you run into a file that you don't know, and you want to investigate which package it belongs to, you can enter the following command
Rpm-qf/usr/x11r6/bin/xjewel
The results of the output will be:
Xjewel-1.6-1
· If there is a combination of the above two examples, such as file/usr/bin/paste problems. You want to know which package contains the 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 obtain documentation about the program in the package:
Rpm-qdf/usr/bin/ispell
The output results are:
/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 what files are installed in the system by the Koules RPM package, and you can type:
RPM-QLP koules-1.2-2.i386.rpm output results are:
/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