Brief Chinese manual for RPM commands in Linux (1)

Source: Internet
Author: User

RPM is the RedhatPackageManager, that is, the redhat Package Manager. rpm is a powerful package manager that allows you to create, install, query, modify, upgrade, and uninstall software packages. A package contains the file architecture, package information, name, version number, and package description.

For more details, refer to the rpm manual on your system.

I. Installation

Command Format:

Rpm-I (or -- install) options file1.rpm... fileN. rpm

Parameters:

File1.rpm... fileN. rpm file name of the RPM package to be installed

Detailed options:

-H (or -- hash) outputs the hash mark (''#'') during installation (''#'')
-- Test only tests the installation and does not actually install it.
-- Percent: the installation progress is displayed as a percentage.
-- Excludedocs does not install the document files in the Software Package
-- Includedocs installation document
-- Replacepkgs force the installed software package to be reinstalled
-- Replacefiles: Replace the files of other software packages.
-- Force ignores conflicts between software packages and files
-- Noscripts does not run the pre-Installation and post-installation scripts
-- Prefix install the software package to the specified path
-- Ignorearch does not validate the structure of the software package
-- Ignoreos does not check the operating system of the software package.
-- Nodeps does not check Dependencies
-- Ftpproxy is used as an FTP Proxy
-- Ftpport specifies that the FTP port is

General options

-V: display additional information
-Vv: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that the pre-installation program and post-Installation
Installation programs will be installed in this directory
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory

Ii. Delete

Command Format:

Rpm-e (or -- erase) options pkg1... pkgN

Parameters

Pkg1... pkgN: package to be deleted

Detailed options

-- Test: only delete the test.
-- Noscripts does not run the pre-Installation and post-installation script programs
-- Nodeps does not check Dependencies

General options

-Vv: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that the pre-installation program and post-Installation
All programs are installed in this directory.
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory

Iii. Upgrade

Command Format

Rpm-U (or -- upgrade) options file1.rpm... fileN. rpm

Parameters

File1.rpm... fileN. rpm package name

Detailed options

-H (or -- hash) outputs the hash mark (''#'') during installation (''#'')
-- Oldpackage allows "Upgrade" to an old version
-- Test: only test the upgrade.
-- Excludedocs does not install the document files in the Software Package
-- Includedocs installation document
-- Replacepkgs force the installed software package to be reinstalled
-- Replacefiles: Replace the files of other software packages.
-- Force ignores conflicts between software packages and files
-- Percent: the installation progress is displayed as a percentage.
-- Noscripts does not run the pre-Installation and post-installation scripts
-- Prefix install the software package to the specified path
-- Ignorearch does not validate the structure of the software package
-- Ignoreos does not check the operating system of the software package.
-- Nodeps does not check Dependencies
-- Ftpproxy is used as an FTP Proxy
-- Ftpport specifies that the FTP port is

General options

-V: display additional information
-Vv: displays debugging information.
-- Root ask RPM to use the specified path as the "root directory", so that both the pre-installation program and the post-installation program will be installed in this directory.
-- Rcfile sets the rpmrc file
-- Dbpath: set the path of the RPM data inventory


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.