When you use the yum or yum resource library for updates for the first time, yum automatically downloads all the required he ade rs files in the/var/cache/yum Directory, which may take a long time.
You can also use the yum info command to list the package information. The available parameters of yum info are the same as those of yum list.
The yum command can also use the-y parameter to answer the question raised during the command running with ye s, such as yum-y install vsftpd, in this way, you do not need to enter yes/y when installing the software.
1.
Yum check-update checks all software packages that can be updated
2.
Yum update: Download and update all software packages installed in the system.
3.
Yum upgrade has a large-scale version upgrade. Different from yum update, the old version is also upgraded.
4.
Yum install <packages> install new software package
5.
Yum update <packages> updates the specified software package.
6.
Yum remove <packages> uninstall the specified Software Package
7.
Yum groupinstall <groupnames> install software packages in the specified Software Group
8.
Yum groupupdate <groupnames> updates software packages in a specified Software Group
9.
Yum groupremove <groupnames> uninstall the software package in the specified Software Group
10.
Yum grouplist view installed and available software GROUPS IN THE SYSTEM
11.
Yum list lists all the rpm packages that can be installed, updated, and installed in the resource library.
12.
Yum list <regex> lists the rpm packages that can be installed, updated, and installed that match the regular expression in the resource library.
13.
Yum list available lists all the rpm packages that can be installed in the resource library
14.
Yum list available <regex> lists all the rpm packages that can be installed in the resource library that match the regular expression.
15.
Yum list updates lists all the rpm packages that can be updated in the resource library
16.
Yum list updates <regex> lists all updatable rpm packages that match the regular expression in the resource library.
17.
Yum list installed list all installed rpm packages in the resource library
18.
Yum list installed <regex> lists all installed rpm packages that match the regular expression in the resource library.
19.
Yum list extras lists the rpm packages installed but not included in the resource library
20.
Yum list extras <regex> lists the installed rpm packages that match the regular expression but are not included in the resource library
21.
Yum list recent list software packages recently added to the resource library
22.
Yum search <regex> checks the names, descriptions, overview, and listed maintainers of all available software and finds values that match regular expressions.
23.
Yum provides <regex> checks the files contained in the software package and the functions provided by the software to find the values that match the regular expression.
24.
Yum clean headers clear cache rpm header files
25.
Yum clean packages clear cached rpm package files
26.
Yum clean all clear cache rpm header files and package files
27.
Yum deplist <packages> displays the dependency information of the software package.