Essential yum Commands

Some of the most popular Linux distributions use the RPM Package Manager. For those systems, yum is an essential tool working as an layer above RPM, allowing package and dependency management as well as automatic updates.

These are the most important commands for yum:

  1. Update all packages: yum update or yum upgrade (like update, but removes packages which are not part of the distribution anymore)

  2. Install package/group/environment: yum install [package] (groups start with an @, environments with an ^@)

  3. Remove package/group/environment: yum remove [package] (groups start with an @, environments with an ^@)

  4. Clean yum cache: yum clean all

  5. List all repositories: yum repolist all

  6. Disable/enable a repository: yum-config-manager --disable [repository] or yum-config-manager --enable [repository]