RPM Tools
rpm is by Red Hat and other jobs. However, the dependencies between RPM packages are often cumbersome, especially when the software is made up of multiple RPM packages. Company developed software package management method, using RPM we can easily install, query, uninstall, upgrade
RPM Package:
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/13/65a408f161e1ccf8eecf65ff75032c1f.png-wh_500x0-wm_3 -wmp_4-s_3247444539.png "title=" 1.png "alt=" 65a408f161e1ccf8eecf65ff75032c1f.png-wh_ "/>
The general format of the RPM package is:
name-version-arch.rpm
name-version-arch.src.rpm
1.name, such as: Xvattr, is the name of the software.
2.version, such as: 1.3, is the version number of the software. The format of the version number is typically "major version number. minor version number.". 27, is the release version number, indicating that this RPM package is generated by the first several times.
3.arch, such as: i386, represents the applicable hardware platform for the package, the current RPM supported platforms are: i386, i586, i686, SPARC, and Alpha.
4.rpm or. src.rpm, is the suffix of the RPM package type,. RPM is a compiled binary package that can be installed directly with the RPM command ;. src.rpm is the source code package, you need to install the source package to generate the source, and build the. RPM package to the source, you can install the RPM package.
Note:
El* represents the Publisher version of this package, EL7 says the package is used under Rhel 7.x/centos 7.x.
Devel: Indicates that this RPM package is the software development package.
Noarch: Such packages can be installed on any platform, without the need for a specific hardware platform. Can be run on any hardware platform.
RPM Installation:
RPM-IVH Package Full Name
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/13/81e24eeac6af883a5ff70e848adcdbcc.png-wh_500x0-wm_3 -wmp_4-s_3995816365.png "title=" 2.png "alt=" 81e24eeac6af883a5ff70e848adcdbcc.png-wh_ "/>
RPM Update:
RPM-UVH Package
RPM Uninstall:
RPM-E Package Name
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/13/bef4af372a8a73ace1aceef97993b3b6.png-wh_500x0-wm_3 -wmp_4-s_3616645023.png "title=" 3.png "alt=" Bef4af372a8a73ace1aceef97993b3b6.png-wh_ "/>
RPM Query
RPM-Q Package Name query is installed
rpm -i query software information
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/13/6f0b7bc03f7a28747aaf84b484a733c8.png-wh_500x0-wm_3 -wmp_4-s_235637951.png "title=" 5.png "alt=" 6f0b7bc03f7a28747aaf84b484a733c8.png-wh_ "/>
RPM-QL Query Location
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/13/6ba274332316b6ad1e7ce34ba5f7da77.png-wh_500x0-wm_3 -wmp_4-s_2738823294.png "title=" 6.png "alt=" 6ba274332316b6ad1e7ce34ba5f7da77.png-wh_ "/>
Rpm-qa query all installed RPM packages
Common Query Command Rpm-qa | grep Package Name (query PPP package)
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/13/1bf023af560e2b53a119c425b41c38a9.png-wh_500x0-wm_3 -wmp_4-s_2133363221.png "title=" 4.png "alt=" 1bf023af560e2b53a119c425b41c38a9.png-wh_ "/>
Yum Tools
Yum (full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and Redhat and SuSE. Based on RPM package management, the ability to automatically download the RPM package from the specified server and install, can automatically handle dependency relationships, and install all dependent software packages at once, without the tedious download and installation.
Yum Query
Yum list queries all available RPM packages
The Yum list PPP will only look for PPP-related
Yum Installation
Yum-y Install package Name
If you do not add the parameter y, you will be asked if you want to continue during the installation, but after adding Y, it will be installed automatically.
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/13/351723316ccc6f92c9152e0a48e2bed8.png-wh_500x0-wm_3 -wmp_4-s_2278730938.png "title=" 9.png "alt=" 351723316ccc6f92c9152e0a48e2bed8.png-wh_ "/>
Yum Upgrade
YUM-Y Update package Name
Yum Uninstall
Yum-y Remove Package Name
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/13/b9d06690d2f596192f41d2b61bd43d10.png-wh_500x0-wm_3 -wmp_4-s_3781940738.png "title=" 8.png "alt=" B9d06690d2f596192f41d2b61bd43d10.png-wh_ "/>
Query for software groups
Yum Grouplist can detect all software groups that can be installed
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/13/41fc38c151e51a83073b1af4ee067de3.png-wh_500x0-wm_3 -wmp_4-s_3500710234.png "title=" 7.png "alt=" 41fc38c151e51a83073b1af4ee067de3.png-wh_ "/>
Yum builds local warehouses
In general, as long as our network is connected, the above Yum source is a legitimate Yum source. Generally in the case of a network, the default is to download from the "Base" yum source we need the RPM package and a variety of dependent packages for automatic installation, in the absence of the network, you will choose the "Media" Yum Source-local CD yum source.
1. Mount the image to/mnt
2.cp-r/etc/yum.repos.d/etc/yum.repos.d.bak
3.rm-f/etc/yum.repos.d/*
4.vim Etc/yum.repos.d/dvd.repo content is as follows:
[DVD] # Custom warehouse Name
Name=install DVD # Custom Description
BaseURL = file:///mnt #rpm包所在位置, the address where the optical drive is mounted
Enable=1 #1表示使用本仓库, 0 for non-use
Gpgcheck=0 #0为不检测
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/13/545de669eb70b0146bcc32a2cb7db01d.png-wh_500x0-wm_3 -wmp_4-s_685067333.png "title=" 11.png "alt=" 545de669eb70b0146bcc32a2cb7db01d.png-wh_ "/>
5.yum Clean All # Clear Cache
6.yum List #查询可用的包
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/13/1546e44761a7271f633fc53a892813e7.png-wh_500x0-wm_3 -wmp_4-s_1915577248.png "title=" 12.png "alt=" 1546e44761a7271f633fc53a892813e7.png-wh_ "/>
650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0035.gif "alt=" J_0035.gif "/>
This article is from the "Operation and maintenance of the Road" blog, please be sure to keep this source http://ccj168.blog.51cto.com/13163491/1981421
Linux package installation and uninstallation (RPM, yum tools)