Rpm
1. RMP Package Manager function
RPM Package Manager, which installs, upgrades, uninstalls, queries, and verifies packages (primarily verifying the legitimacy and integrity of the source)
2, the RPM package naming mechanism (usually)
NAME-VERSION-RELEASE-ARCH.RPM, such as
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/37/wKioL1X326TQdE4JAACXW854nPg094.jpg "title=" QQ picture 20150915163917.jpg "alt=" Wkiol1x326tqde4jaacxw854npg094.jpg "/>
3. Ways to get RPM packages
1. Package (CD-ROM) provided by the release version
2. Fedora-epel Organization
3, the official site of the project
4, search engine rpmfind.net pkgs.org, etc.
4. Common Command Options
-i:install Installation
-V: Show detailed procedures
-H: Display the installation process with "#"
-Q: Query
-QA: Query all installed packages
-QF: Query for a file to be generated by that package installation
-QC: View First configuration file
-QD: Querying the Help document generated by a package file
-qi: Query For information about the installation package, such as name, installation date, etc.
-QL: Viewing the generated files
-QPI: Querying for information about packages that are not installed
--nodeps: Ignoring dependencies
--test: Test Installation
--replacepkgs: Reinstall
-U: Upgrade
-UVH: When upgrading the installation, if the old version of the upgrade, if there is no older version, install
-FVH: When upgrading the installation, if the old version of the upgrade, if there is no older version, do not upgrade
--oldpackage: Downgrade installation (typically for unstable or other issues after upgrading a new version)
--force: Forced upgrade
-V: Whether it was altered
--import: Import Key file
-K: Package Check
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/38/wKioL1X36iyBV39YAAIBqiiSJfI306.jpg "style=" float: none; "title=" QQ picture 20150915173412.jpg "alt=" Wkiol1x36iybv39yaaibqiisjfi306.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/3B/wKiom1X35_eCYAV5AAIbD2fK078355.jpg "style=" float: none; "title=" QQ picture 20150915174122.jpg "alt=" Wkiom1x35_ecyav5aaibd2fk078355.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/38/wKioL1X36rrReurSAAS-mP_zer0611.jpg "title=" QQ picture 20150915174355.jpg "alt=" Wkiol1x36rrreursaas-mp_zer0611.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/38/wKioL1X371vB0IyFAAFJLlTuesM425.jpg "title=" QQ picture 20150915180339.jpg "alt=" Wkiol1x371vb0iyfaafjlltuesm425.jpg "/>
YUM
1. Yum configuration file
/etc/yum.conf: All configurations, configurations for all warehouses
/etc/yum.repos.d/*.repo: Typically used in a warehouse or a group of similar or related functions
2. Basic Process Description
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/3B/wKiom1X38OWRV3atAAKDdswr7xU174.jpg "title=" QQ picture 20150915181753.jpg "alt=" Wkiom1x38owrv3ataakddswr7xu174.jpg "/>
3. Define a warehouse
[Repo.id] #仓库名称
Name= #仓库简单描述
Baseurl= #仓库地址
Enable=[1|0] #使用启用, 1 is enabled, default is 1
GPGCHECK=[1|0] #是否校验
gpgkey= #校验密钥路径
Cost #仓库开销
4. Yum command
-install Installation
-remove Uninstall
-update Upgrade
-info Query Package related information
-reinstall Re-installation
-downgrade downgrade Installation
5, Real: Create a new local warehouse, install Postfix, create a new online warehouse, find out if postfix is newer than the previously installed version, if there is update, if none, do not install
5.1. New Local Warehouse Localbase.repo
[Localrepo]
Name=localhost file
Baseurl=file:///mnt
Enable=1
Gpgcheck=0
cost=10
5.2. View warehouse Information
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/38/wKioL1X39lDwG0rQAAFWwm2RISU497.jpg "title=" QQ picture 20150915183316.jpg "alt=" Wkiol1x39ldwg0rqaafwwm2risu497.jpg "/>
5.3, installation Postfix
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/3B/wKiom1X39I-jL_1MAAK3kcfA3hc731.jpg "title=" QQ picture 20150915183507.jpg "alt=" wkiom1x39i-jl_1maak3kcfa3hc731.jpg "/>5.4, view installation information
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/3B/wKiom1X39MuCm4wtAAFLLo_hF3A483.jpg "title=" QQ picture 20150915183609.jpg "alt=" Wkiom1x39mucm4wtaafllo_hf3a483.jpg "/>
RPM and Yum implementation package management functions