RPM Package Management Command rpm

Source: Internet
Author: User

The RPM Package Manager is one of the oldest software packages in Linux, and is currently the most popular package manager, and many distributions use RPM as the default package management software.

RPM Package Name format:

samba-client-3.0.33-3.7.el5.i386.rpm

Samba-client is the name of the package, and the 3.0.33 in 3.0.33-3.7 represents the major version number of the package, followed by 3.7 for the minor version number of the software release, and El5 for the red Hat Enterprise Linux 5 system. Fc6 for Fedora Core Linux 6 system; i386 means hardware platform; RPM means that this is an RPM package, and some packages end up with src.rpm, which means the package contains source code.

RPM Command Basic format:

RPM [OPTIONS ...] Q: Use Query mode A: query All packages I: Show details L: Show file List of package P: query specified package f: Query specified file package V: Show command execution H: Show progress information when installing package E: Uninstall the specified package U: Upgrade Package

To query installed software:

-Qsamba--grepssh-qi chkconfig

Querying files in a package

--QPL samba-client-3.0. 3.7. el5.i386.rpm# Use options P and I to view Samba--qpi samba-client-3.0. -3.7. el5.i386.rpm# using option F to specify the query/bin/-qf/bin/ls

Installing packages using the RPM command

Installing the RPM package requires the option I (long format to install, note the difference between the Software Information option info) and the package as a parameter.

-I cabextract-1.3-1-IVH cabextract-1.3-1. i386.rpm

Uninstalling a package using the RPM command

#使用选项e卸载软件包samba-e samba-client

Upgrading packages with the RPM command

#使用选项U升级软件bzip2-bzip2-libs-1.0. 3-4. e15_2.i386.rpm

RPM Package Management Command rpm

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.