In the Linux operating system, there is a system software package, which is red Hat Package Manager (RPM). The toolkit was first launched by Red Hat and later borrowed by other Linux developers. Because it saves a lot of time for Linux users, it is widely used to install and remove software under Linux.
Core features of package management:
1, the production of software packages;
2, installation, uninstall, upgrade, query, check;
Below, we specifically describe the use of the RPM package
RPM Command:
RPM: Managing Packages. (Its database is in the/var/lib/rpm file)
Rpmbuild: Create a package.
The management of RPM package:
Completion of installation, query, uninstall, upgrade, calibration, database reconstruction, validation data packets and so on;
Installation:
Rpm-i|--install/path/to/package_file
-H: Displays the progress of the installation with the # sign: Each # represents 2%
-V: Show detailed procedures
-VV: A more detailed process
Rpm-ivh/path/to/package_file
--nodeps: Ignore the dependency relationship;
--replacepkgs: Reinstall, replace the original installation;
--oldpackage: Version demotion
--force: Forced installation, can be reload or degraded
--test: Test whether to install
Inquire:
Rpm-q packge_name Query Whether the specified package is already installed
Example: # Rpm-q Bind
RPM-QA: Query for all packages that have been installed
Example: # Rpm-qa | grep "^z" queries all packages that start with Z
Rpm-qi package_name: Query The description information for the specified package
RPM-QL package_name: query Specifies the list of files generated after package installation
RPM-QC package_name: query Specifies the configuration file for package installation
RPM-QD package_name: Querying the Help files for the specified package installation
Rpm-q--scripts package_name: query Specifies the script contained in the package
Rpm-qf/path/to/somefile: The file specified by the query is generated by the RPM package installation
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/