In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and uninstall RPM software package under Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to install and uninstall the RPM package under Linux.
Under the Linux operating system, almost all software is installed, uninstalled and managed through RPM. The full name of RPM is Redhat Package Manager, which is proposed by Redhat Company to manage software packages under Linux. When Linux is installed, except for a few core modules, almost all the other modules are installed through RPM. RPM has five modes of operation: install, uninstall, upgrade, query, and verify.
RPM installation operation
Command:
Rpm-I package filename that needs to be installed
Examples are as follows:
Rpm-I example.rpm install example.rpm package
Rpm-iv example.rpm installs the example.rpm package and displays information about the files being installed during installation
Rpm-ivh example.rpm installs the example.rpm package and displays the information about the files being installed and the installation progress during the installation process
RPM query operation
Command:
Rpm-Q...
Additional query commands:
A query all installed packages the following two additional commands are used to query the information of the installation package
I display information about the installation package
L shows the directories to which all the files in the installation package are installed
S shows the status of all files in the installation version and the directories to which they are installed; the following two additional commands are used to specify whether to query the installation package or the installed files
P queries the information about the installation package
F queries the information of a file that has been installed
Examples are as follows:
Rpm-qa | grep tomcat4 to see if tomcat4 is installed
Rpm-qip example.rpm to view information about the example.rpm installation package
Rpm-qif / bin/df View the information of the installation package where the / bin/df file is located
Rpm-qlf / bin/df View the directory to which each file in the installation package of the / bin/df file is installed
RPM uninstall operation
Command:
Rpm-e installation packages that need to be uninstalled
Before uninstalling, you usually need to use rpm-Q … Command to find out the name of the installation package that needs to be uninstalled.
Examples are as follows:
Rpm-e tomcat4 Uninstalls the tomcat4 package
RPM upgrade operation
Command:
Rpm-U packages that need to be upgraded
Examples are as follows:
Rpm-Uvh example.rpm upgrade example.rpm package
RPM authentication operation
Command:
Rpm-V packages that need to be verified
Examples are as follows:
Rpm-Vf / etc/tomcat4/tomcat4.conf
The output information is similar to the following:
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, please refer to the rpm help file: man rpm
Other additional commands for RPM
-- force mandatory actions such as forced installation and deletion, etc.
-- requires shows the package's dependencies
-- nodeps ignores dependencies and continues
At this point, I believe you have a deeper understanding of "how to install and uninstall RPM packages under Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.