Skip to content

Instantly share code, notes, and snippets.

@johnrc
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnrc/0f4af67a8e48014c127d to your computer and use it in GitHub Desktop.
Save johnrc/0f4af67a8e48014c127d to your computer and use it in GitHub Desktop.
Useful commands for yum

General Yum Commands

yum search <whatever>
yum install <package>
yum autoremove <package> //good for removing dependencies
yum remove <package> //only removes package and others that depend on it
yum upgrade //update and remove any unneeded packages
yum clean expire-cache //refresh the cache, similar to apt-get update

Group Install

Groups are a convenient way to install several related packages at once.

yum grouplist | less
yum groupinfo <"group name"> | less
yum groupinstall <group>
yum groupinstall <group> <"group"> -y
yum groupremove <group>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment