Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use linux's rpm package

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to use linux's rpm package". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use linux's rpm package.

In linux, rpm package is a management program that installs the required software to the host through database management; rpm is often used to install, upgrade, uninstall and query software packages developed by Red Hat, and linux implements and manages the installation, viewing and deletion of software through rpm.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What is linux's rpm package?

RPM (RedHat Package Manager) is a management program that installs the required software to the host through database management.

Characteristics of RPM package

1: compiled beforehand

2: easy to install

3: the environment is required to be consistent during installation

4: start from the top when reverse installation

Naming rules for RPM packages

Example: bind-9.8.2-0.47.rc1.el6.x86_64.rpm

1.name, such as bind, is the name of the software

2.version, such as 9.8.2-0, is the version number of the software, and the version number is usually in the format of "major version number. Minor version number. Correction number". 47, which is the release number, indicating the number of times the rpm package was compiled and generated

3.arch, such as i386, is a hardware platform for expressing packages. At present, the platforms supported by rpm are: i386, i586, i686, sparc and alpha.

4..rpm and .src.rpm are rpm package type suffixes, rpm is a compiled binary package, and .src.rpm is a source package

5. Special name:

(1) el*: indicates the publisher's version, and el6 indicates that the software package is used under rhel6.x/centos6.x.

(2) devel: indicates that this rpm package is a software development package.

(3) noarch: this indicates that such software packages can be installed and run on any platform without the need for a specific hardware platform.

For example, httpd-manual- 2.0.40-21.i386.rpm

Httpd-manual-package name

2-Major version number

0-minor version number

40-minor version number

21-number of compilations

I386-the right platform

Rpm-indicates that it is a RPM package

Installation of RPM package

The installation of the RPM package is very simple, as long as the following command is executed:

Rpm-ivh package name

Parameter description:

-I installation

-v displays installation information

-h shows the progress of installation

The rpm command installs the rpm package and the source package, with the RPM package ending with .rpm and the source package ending with .src.rpm

RPM common commands-ivh installation and display installation progress (rule: rpm- ivh package name) example: rpm- ivh bind-9.8.2-0.47.rc1.el6.x86_64.rpm-Uvh upgrade package (rpm-Uvh package name / / upgrade package-old upgrade new Example: rpm-Uvh-- oldpackage bind-9.8.2-0.47.rc1.el6.x86_64.rpm (the new version of the package is downgraded to the old version)-ql lists the file information in the rpm package (shows the contents of the installed package) example: rpm-ql vsftpd (rule: rpm-ql software name)-qi lists the rpm package description information (displays the installed package properties) example: rpm -qi bind (rule: rpm-qi software name)-qf to see which package the specified file belongs to (rpm-qf filename) example: rpm-qf / etc/rc.d/init.d/named-Va verifies all rpm packages Find missing files-e delete rpm package (rpm- e package name) example: rpm- e bind-9.8.2-0.47.rc1.el6.x86_64.rpm-qpR view rpm package dependency example: rpm-qpR package name-force ignores conflicts between package and files, that is, forced installation (long format command)-nodeps ignores package dependency (long format command)-test installation test Do not actually install (long format command) example: test-nodeps and-- test,rpm-ivh httpd-2.2.15-53.el6.x86_64.rpm-- test are not installed, test the dependency rpm-qa of the httpd package

Among them

The-an option is to query all installed packages.

-Q is to query whether a package is installed

(display difference: installed rpm packages do not display the suffix. rpm, while uninstalled packages display the suffix .rpm)

Thank you for your reading, the above is the content of "how to use linux's rpm package". After the study of this article, I believe you have a deeper understanding of how to use linux's rpm package, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report