How to manage RPM packages in Linux systems

Source: Internet
Author: User

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/

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.