Show Menu
Cheatography

Overview

/etc/y­um.conf YUM config­uration file
/etc/y­um/­rep­os.d/ YUM drop in directory

List

yum list all list all installed and available packages
yum list glob_e­xpr­ession list installed and available packages matching glob_e­xpr­ession
yum list installed glob_e­xpr­ession list installed packages matching glob_e­xpr­ession
yum list available glob_e­xpr­ession list available packages matching glob_e­xpr­ession

Download

yum install yum-utils install yumdow­nloader
yumdow­nloader package download package
yum install yum-pl­ugi­n-d­own­loa­donly install downlo­adonly plugin
yum install --down­loa­donly --down­loa­ddir=directory package download package

Group

yum groups summary show installed and available groups
yum group list glob_e­xpr­ession show package group matching glob_e­xpr­ession
yum group info glob_e­xpr­ession show mandatory and optional packages in group
yum group list ids show package groups and IDs
yum group install group_name install package group
yum group install groupid install package group with groupid
yum install @group install package group
yum group remove group_name uninstall package group
yum group remove groupid uninstall package group with groupid

Search

yum search term search for term in package name and summary

Update

yum check-­update check for update
yum update packag­e_name update a single package
yum update update all packages and their depend­encies
yum update --security update securi­ty-­related packages
yum update­-mi­nimal --security update packages containing the latest security
 

Info

yum info packag­e_name display info about package
yumdb info packag­e_name display info about package
yum info glob_e­xpr­ession display info about package matching glob_e­xpr­ession
yum provides glob_e­xpr­ession display package that provides glob_e­xpr­ession

Install

yum install packag­e_name install package and depend­encies
yum install packag­e_name packag­e_name install multiple packages and depend­encies
yum install packag­e_n­ame.arch install package with specific archit­ecture
yum install glob_e­xpr­ession install packages matching glob_e­xpr­ession
yum install /path/­to/file install package which provides /path/­to/file
yum install -n name install exact name package
yum install -na name.a­rch­ite­cture install exact name.a­rch­ite­cutre package
yum install -nevra name-e­poc­h:v­ers­ion­-re­lea­se.a­rc­hit­ecture install exact name-e­poc­h:v­ers­ion­-re­lea­se.a­rc­hit­ecture package
yum locali­nstall path install local package

Repository

yum-co­nfi­g-m­anager show current values of global yum options
yum-co­nfi­g-m­anager section show content of different config­uration option
yum-co­nfi­g-m­anager glob_e­xpr­ession show config­uration matching glob_e­xpr­ession
yum-co­nfi­g-m­anager --add-repo repo_url add a repository
yum-co­nfi­g-m­anager --enable repository enable a repository
yum-co­nfi­g-m­anager --enable glob_e­xpr­ession enable reposi­tories matching glob_e­xpr­ession
yum-co­nfi­g-m­anager --disable repository disable a repository
yum-co­nfi­g-m­anager --disable glob_e­xpr­ession disable reposi­tories matching glob_e­xpr­ession
yum repolist all list enabled and disabled reposi­tories
yum repoinfo list reposi­tories
yum repolist -v list reposi­tories
yum repolist list reposi­tories
 

Uninstall

yum remove packag­e_name uninstall package

History

yum history list show twenty most recent transa­ctions
yum history list all show all transa­ctions
yum history list start_id..end_id show transa­ctions in a given range
yum history list glob_e­xpr­ession show transa­ctions for a package
yum history sync synchr­onize rpmdb or yumdb database
yum history stats show overall statistics
yum history summary show summary of past transa­ctions
yum history summary start_id..end_id show summary in a given range
yum history summary glob_e­xpr­ession show summary matching glob_e­xpr­ession
yum history packag­e-list glob_e­xpr­ession show transa­ctions from perspe­ctive of package
yum history summary id show summary of single transa­ction
yum history summary info id show info of single transa­ction
yum history info start_id..end_id show info in a given range
yum history addon-info id show additional info for a transa­ction
yum history addon-info last show additional info for last transa­ction
yum history addon-info id inform­ation show selected type of inform­ation
yum history undo id revert a transa­ction
yum history redo id redo a transa­ction
yum -q history addon-info id saved_tx > file_name store transa­ction detail to file
yum load-t­ran­saction file_name repeat transa­ction from file_name
yum history new start new transa­ction history

Clean

yum clean all clean orphaned packages
yum autoremove uninstall orphaned packages
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

            YUM Command Cheat Sheet by Red Hat

          More Cheat Sheets by misterrabinhalder

          RPM Cheat Sheet