RPM package management in Linux

Source: Internet
Author: User

RPM package management in Linux

Overview

A package and Installation tool used to download packages from the Internet. It is included in some linux distributions. It generates a file with the. RPM extension. RPM is the abbreviation of RedHat Package Manager (Redhat Package management tool. Although this file format is marked with Redhat, its original design concept is open, including OpenLinux, S. u. s. e. and distribution versions of Linux such as Turbo Linux. It can be regarded as an industry standard.

RPM package name format

Apache-1.3.23-11.i386.rpm

-"Apache": Software name

-"1.3.23-11": version number of the software, Master version and current version.

-"I386": the hardware platform running the software.

-"Rpm": indicates the file extension, indicating the RPM package.

 

Common RPM commands

-Rpm-qa: Query all installed rpm packages.

-Rpm-qa | more

-Rpm-qa | grep X

-Rpm-q package name: queries whether the package is installed.

-Rpm-q xinetd

-Rpm-q foo

-Rpm-qi package name: queries the package information

-Rpm-qi file

-Rpm-ql package name: query the files in the package

-Rpm-ql file

-Rpm-ql jdk

-Rpm-qf file full path name: query the software package to which the file belongs

-Rpm-qf/etc/passwd

-Rpm-qf/root/install. log

-Rpm-qp package file name: Describes the package to query package information.

-Rpm-qp jdk-1_5_0-linux-i586.rpm

-Rpm-qpi jdk-1_5_0-linux-i586.rpm

-Rpm-qpl jdk-1_5_0-linux-i586.rpm

 

Install the RPM package

Rpm-ivh RPM package full path name: installation package to the current system

-I = install, install

-V = verbose, prompting that there is a prompt message

-H = hash, progress bar

 

Delete an RPM package

Rpm-e RPM package name

[Case] rpm-e jdk

If other software packages depend on the software packages you want to uninstall, an error message is generated during the uninstallation, for example:

[Case] rpm-e foo

Removing these packages wowould break dependencies: foo is needed by bar-1.0-1

If you want RPM to ignore this error and continue uninstallation, use the "‐nodeps" command line option.

Case study: rpm-e‐‐nodeps foo

 

Upgrade RPM package

Rpm-u rpm package full path name

Case study: rpm-U cvs-1.11.2-10.i386.rpm

Getting started with creating an RPM package

In Linux, how does one create an RPM package?

Create your own rpm package

Directory structure and configuration after rpm installation in Linux

Brief Introduction and demo of rpm and yum

Redhat Linux --- rpm command details

Use FPM to easily create an RPM package

This article permanently updates the link address:

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.