Building YUM Library and using YUM tools
YUM,Yellow dog Updater Modified
Software update mechanism based on RPM package construction
Automatically resolve package dependencies
All software packages are provided by a centralized YUM software repository
Basic configuration file for yum:
Basic setting: / etc/yum.conf
Warehouse configuration: / etc/yum.repos.d/*.repo
Log file: / var/log/yum.log
Cache directory: / var/cache/yum/$basearch/$releasever [used to store download packages, warehouse records, etc.]
*. Basic configuration items for repo:
[source name]: custom name, unique
Name: description information of this software source
Baseurl: specify the URL address of the YUM server [local directory file://..., FTP or HTTP service: ftp://..., http://...]
Enabled: whether to enable this configuration
Gpgcheck: whether to verify the RPM package to be installed
Gpgkey: key file for RPM authentication
Basic operation of the software package:
Format: yum [- y] instruction [software name]. # [- y] omit confirmation during installation or deletion
Common instructions:
List: view a list of packages
Search: view key keywords for package name or description
Info: view the description of the package, similar to rpm-qi
Install: installs the specified software package, similar to rpm-I
Update: upgrading specified software packages
Remove: uninstalls the specified package, similar to rpm-e
Provides: similar to rpm-qf
Clean all: clear all caches of the local yum
Basic operation of software group:
Format: yum [- y] instruction [package group name]. # [- y] omit confirmation during installation or deletion
Common instructions:
Grouplist: view a list of software groups
Groupinfo: view the description of the software group
Groupinstall: installs the specified software group
Groupupdate: upgrade software group
Groupremove: uninstall the software group