In Linux, almost all software is installed, uninstalled, and managed through RPM. RPM is called RedhatPackageManager. it was proposed by Redhat to manage software packages in Linux. Linux installation, except for a few cores...
In Linux, almost all software is installed, uninstalled, and managed through RPM. RPM is called Redhat Package Manager. it is a software developed by Redhat to manage software packages in Linux. During Linux installation, almost all modules except several core modules are installed through RPM. RPM has five operation modes: installation, uninstallation, upgrade, query, and verification. Run the command "RPM-I" to install www.2cto.com. the file name of the package to be installed is as follows: rpm-I example. rpm installation example. rpm Package; rpm-iv example. rpm installation example. the rpm Package displays the file information that is being installed during the installation process. rpm-ivh example. rpm installation example. the rpm Package displays the information about the files being installed and the installation progress. run the RPM command: rpm-q... Additional query command: www.2cto.com a queries all installed packages. the following two additional commands are used to query the information of the installation package. I displays the information of the installation package; l display the directories in which all files in the installation package are installed; s shows the status of all files in the installation version and the directories to which files are installed; the following two additional commands are used to specify whether the installation package or the installed file needs to be queried; p queries information about the installation package; f queries information about a file that has been installed; for example: rpm-qa | grep tomcat4 check whether Tomcat 4 is installed; rpm-qip example. run rpm to view example. rpm installation package information; rpm-qif/bin/df view the information of the installation package where the/bin/df file is located; run the rpm-qlf/bin/df command to check which Directory the files in the installation package where the/bin/df file is located are installed. run the following command to uninstall RPM: the rpm-e installation package needs to be uninstalled. Use rpm-q... Command to find the name of the installation package to be uninstalled. Example of www.2cto.com: rpm-e tomcat4 uninstall tomcat4 software package RPM upgrade command: rpm-U package to be upgraded example: rpm-Uvh example. rpm upgrade example. rpm software package RPM verification operation command: rpm-V to verify the package example: rpm-Vf/etc/tomcat4/tomcat4.conf output information is similar to the following: www.2cto.com s.5 .... T c/etc/tomcat4/tomcat4.conf where S indicates that the file size has been modified, and T indicates that the file date has been modified. For more verification information, see The rpm Help File: other additional commands of man rpm RPM-force operations such as force installation and deletion; -- requires: displays the dependency of the package. -- nodeps ignores the dependency and continues the operation;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.