Introduction to the yum command

Some of the more common uses of yum
Order Function
yum check-update Check all packages that are updatable
yum update Download all packages installed by the update system
yum upgrade Large-scale version upgrade, unlike yum update, even the old outdated packages are also upgraded
yum install <packages> Install new packages
yum update <packages> Update the specified package
yum remove <packages> Uninstall the specified package
yum groupinstall <groupnames> Install packages in the specified software group
yum groupupdate <groupnames> Update packages in the specified software group
yum groupremove <groupnames> Uninstall a package in the specified software group
yum grouplist View installed and available software groups on the system
yum list List all rpm packages that can be installed or updated and installed in the repository
yum list <regex> List the rpm packages that can be installed or updated and installed that match the regular expression in the repository
yum list available List all installable rpm packages in the repository
yum list available <regex> List all installable rpm packages in the repository that match a regular expression
yum list updates List all rpm packages that can be updated in the repository
yum list updates <regex> List all updateable rpm packages in the repository that match the regular expression
yum list installed List all installed rpm packages in the repository
yum list installed <regex> List all installed rpm packages in the repository that match a regular expression
yum list extras List installed rpm packages that are not included in the repository
yum list extras <regex> List installed rpm packages that match a regular expression but are not included in the repository
yum list recent List packages recently added to the repository
yum search <regex> Detects the names, descriptions, profiles and listed maintainers of all available software, looking for values ​​that match a regular expression
yum provides <regex> Detects files contained in packages and functions provided by the software, looking for values ​​that match regular expressions
yum clean headers Clear rpm header files from cache
yum clean packages Clear the rpm package files in the cache
yum clean all Clear rpm header and package files from cache
yum deplist <packages> Display package dependencies

ps:

  • When yum is used for the first time or the yum repository is updated, yum will automatically download all the required headers and place them in the /var/cache/yum directory, which may take a long time.
  • Package information can also be listed using the yum info command, the parameters available for yum info are the same as for yum list.
  • The yum command can also use the -y parameter to answer questions asked when the command runs with yes.

 

 

Author: Xinxin Xin, published in   Blog Park

Please indicate the source when reprinting. Email communication is welcome: [email protected]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324933054&siteId=291194637