Contents

Linux yum/dnf Examples

Linux yum/dnf commands.

Updates

Check for updates

$ yum check-update

Apply updates (System will ask for final approval)

$ yum update

Apply updates (System will NOT ask for final approval)

$ yum -y update

Search for package names include word “vpn” in it

$ yum search vpn

Search for RPM package/s provides the filename “openvpn” under any possible directory

$ yum provides */openvpn

List

List packages installed with yum

$ yum list installed

List available yum repos

$ yum repolist

List available yum repos (detailed)

$ yum repoinfo

History

List yum history (installed, removed, updated packages)

$ yum history list

See what packages installed on yum history 4 (example)

$ yum history info 4

Remove packages installed on yum history 4 (example)

$ yum history undo 4