Common rpm and Yum commands

Source: Internet
Author: User

(1)-I install software in the system
(2)-u upgrades software in the system
(3)-E uninstall software in the system
(4) use the # (hash) character in-h to display the RPM Installation Process
(5)-V detailed installation process
(6)-verification mechanism for successful installation of V package

(7)-P queries the local RPM package, for example:

-Qlp: query the list of all files in an uninstalled RPM package
-QIP: query the content of an uninstalled RPM package.
-Qrp: query the RPM package dependency
(8)-Q queries the software in the system or the content of the specified RPM package.

-QA: Query all installed RPM packages
-Ql: query the list of all files in an installed RPM package.
-Qi: query the content of an installed RPM package
-QR code query the dependencies of installed RPM packages
-QF queries the package of a file
-Qa-last installation time of all software in the system

(9) -- nodeps ignores the dependency restriction and forcibly installs the target package.
(10) -- The default installation rules in force RPM do not allow the same package to be installed Multiple times or downgrade the installation. If you use the -- force auxiliary parameter, the RPM package is installed forcibly. However, -- force cannot forcibly install a package that does not meet the system dependency (the -- nodeps parameter is required at this time)
(11) Remote Installation of rpm-uvh ftp: // User: Pass @ ftpserver/package. rpm

(12) You can use rpm2cpio to Extract files.
==============================================
Rpm ----> yum
Dpkg ----> Apt
Common Yum commands
Configure the. Repo file in the/etc/yum. Repos. d/directory.
The yum system configuration file is located at/etc/yum. conf.
(1) Yum install

(2) Yum list

(3) Yum update

(4) Yum check-Update

(5) Yum remove

========================================
Alien rpm and Deb package conversion tools
Alien-D package. rpm
Alien-r package. Deb

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.