YUM software management, yum Software
YUM is an RPM front-end program designed to solve the RPM dependency problem, rather than manually installing all the software on which it depends. It uses the repository to save and manage RPM packages. The repository configuration files are saved in the/etc/yum. repos. d/directory in the following format:
[Repository name]
Name = description of the basic information of the Repository (you can write it as needed, mainly for the Administrator)
Baseurl = repository path (you can use local or network file, http, ftp, and nfs. Dynamic loading path: Repository list = repository path)
Enable = 1 (1: enable the repository configuration. 0: Disable the repository configuration. If this option is not selected, it is enabled by default .)
Gpgcheck = 1 (enable verification)
Note: The yum configuration file must end with. repo.
Install software: yum install software-name
Uninstall software: yum remove software-name
Upgrade software: yum update software-name
Search for all software packages containing the keyword: yum search keyword (used to remember the software name)
List all/installed/latest/updated software: yum list (all/installed/recent/updates)
Display the specified software information: yum info software-name (equivalent to rpm-qi software-name)
Query which rpm software contains the target file: yum whatprovides filename
Yum caches a lot of information to improve the speed, but sometimes the cache may cause some faults. You can use the yum clean all command to clear the cache. Every time you run the installation or query command, the yum cache will be rebuilt.
You can manually create a local yum repository in the following ways:
1) Copy all rpm files (usually in the package directory of the installation disc) to a folder.
2) run the rpm command to manually install the createrepo software.
3) run the createrepo-v/rpm-directory command (A repodata folder is created under the current rpm Software directory, which contains the index information of all rpm software in the repository)
4) create a repository configuration file (baseurl = file: // rpm-directory absolute path)
5) if the group information exists, run the "-g" command to specify the group file.
Example: createrepo-g/tmp/* comps. xml/rpm-directory
Note: The group information of CentOS/RHEL is stored in the repodata/directory of the installation disc, and the file name ends with comps. xml.