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: