1 RPM Package Management method
Perhaps Yum is simple and convenient in reality, but sometimes we also use RPM packages, Yum is also RPM package, from installation, query, uninstall, upgrade in many ways to remember, of course, a lot of practice to remember.
NAME
RPM-RPM Package Manager
2 commonly used commands, man document is very long
① Installation
RPM-IVH PackageName
-I installation install meaning
-H,--hash Print hash marks as the package archive is unpacked. Use With-v|--verbose for a nicer display. Show 50 # to indicate the current installation progress
-V Print verbose information-normally routine Progress messages would be displayed. displaying redundant information
--nodeps Don ' t do a dependency check before installing or upgrading a package.
Dependency detection is not performed prior to installation or upgrade
--replacepkgs Install The packages even if some of them is already installed on this system. Overwrite the installation
--force same as using--replacepkgs,--replacefiles, and--oldpackage.
--test do not install the package, simply check for and report potential conflicts.
Test whether it can be installed, not actually installed
② Query
-Q PackageName
[Email protected] ~]# Rpm-q Pidgin
Pidgin-2.7.9-27.el6.x86_64
-QA queries all installed packages, usually in conjunction with grep
[Email protected] ~]# Rpm-qa|grep OpenSSH
Openssh-askpass-5.3p1-84.1.el6.x86_64
Openssh-clients-5.3p1-84.1.el6.x86_64
Openssh-5.3p1-84.1.el6.x86_64
Openssh-server-5.3p1-84.1.el6.x86_64
-qi displaying information about the installation package
[Email protected] ~]# Rpm-qi Pidgin
Name:pidgin Relocations: (not relocatable)
Version Major version: 2.7.9 Vendor (supplier): CentOS
Release:27.el6 Build date:thu 02:17:15 AM CST
Install date:thu Apr 07:51:37 PM CST Build Host:c6b10.bsys.dev.centos.org
Group:applications/internet Source rpm:pidgin-2.7.9-27.el6.src.rpm
size:3142033 license:gplv2+ and GPLv2 and MIT
SIGNATURE:RSA/SHA1, Thu 03:43:36 AM CST, Key ID 0946fca2c105b9de
Packager:centos Buildsystem
url:http://pidgin.im/
Summary:a GTK + based multiprotocol instant Messaging client
Description:
... Omitted...
-QL file generation list after installing the software
[Email protected] ~]# RPM-QL OpenSSH
/etc/ssh
/etc/ssh/moduli
/usr/bin/ssh-keygen
/usr/libexec/openssh
/usr/libexec/openssh/ssh-keysign
/usr/share/doc/openssh-5.3p1
/usr/share/doc/openssh-5.3p1/credits
/usr/share/doc/openssh-5.3p1/changelog
/usr/share/doc/openssh-5.3p1/install
/usr/share/doc/openssh-5.3p1/licence Certificate
/usr/share/doc/openssh-5.3p1/overview
/usr/share/doc/openssh-5.3p1/protocol
/usr/share/doc/openssh-5.3p1/protocol.agent
/usr/share/doc/openssh-5.3p1/readme Installation Documentation Instructions
/usr/share/doc/openssh-5.3p1/readme.dns
/usr/share/doc/openssh-5.3p1/readme.nss
/usr/share/doc/openssh-5.3p1/readme.platform
/usr/share/doc/openssh-5.3p1/readme.privsep
/usr/share/doc/openssh-5.3p1/readme.smartcard
/usr/share/doc/openssh-5.3p1/readme.tun
/usr/share/doc/openssh-5.3p1/todo
/usr/share/doc/openssh-5.3p1/warning. RNG
/usr/share/man/man1/ssh-keygen.1.gz
/usr/share/man/man8/ssh-keysign.8.gz
-QF Query the installation package for a file, you can usually see the installation package that executes the file
[Email protected] ~]# rpm-qf/usr/sbin/sshd
Openssh-server-5.3p1-84.1.el6.x86_64
Note a few common
RPM-QF ' which program name ' returns the full name of the package
Rpm-qif ' which program name ' returns information about the package
RPM-QLF ' which program name ' Returns the file list of the package
According to file query I L or package name
③ upgrade, downgrade
Rpm-uvh/path/to/new_package an older version of the upgrade, or install
Suitable for installation packages
Rpm-fvh/path/to/new_package the old version is upgraded, without exiting the smart upgrade
Suitable for upgrade packages
Downgrade:
RPM-IVH--oldpackage PackageName
④ Uninstall
RPM-E Package_name attention Dependence
--nodeps
Easy to forget rpm of Linux commands