Yum uses the repository to save the software packages for managing rpm and the repository configuration files stored in/etc/yum. repos. the format in the d/directory is as follows: [LinuxCast] # repository name = explanation of repository name # describe basic repository information baseurl = repository address # Local or http, ftp, file, ntfsenable = 1 & n
Yum uses the repository to save the software packages for managing rpm, and the repository configuration files are saved in the/etc/yum. repos. d/directory in the following format:
|
[LinuxCast] # repository name = explanation of repository name # describe basic repository information baseurl = repository address # Local or http, ftp, file, ntfsenable = 1 # whether enable gpgcheck = 1 # verify |
The yum configuration file must start. at the end of the repo, a configuration file can save the configuration information of multiple yum repositories,/etc/yum. repos. d/The Directory can contain multiple configuration files.
Commands for operating software using yum:
|
Yum installsoftware-name # install the specified software yum remove software-name # Uninstall the specified software yum update software-name # update the specified software |
Query using yum:
|
Yum search keyword # search yum list (all | installed | recent | updates) # List all, installed, recent, software updates yum info packagename # display the specified software information yum whatprovides packagename # Query which rpm contains the software package |
Create a yum repository by yourself:
1. install the createrepo file through rpm
2. run the following command: createrepo-v/yum-dir # create the index file of the yum repository.
3. create a configuration file for the yum repository
4. yum clean all # clear yum cache information
5. use yum to group the software package: createrepo-g/tmp/comps. xml/yum-dir