8.4. Operating System Updates

You will want to update your Linux operating system at different times:

Your system may be set up for automatic updates or your system administrator may have policies regarding which packages can be udpated and when.

If you wish to update software packages manually, select your operating system below and follow the instructions as root [1]:

To manually update software packages with Dnf, run this command (as root):

dnf --refresh upgrade

To manually update software packages with Pacman, run this command (as root):

pacman --sync --refresh --sysupgrade

or equivalently:

pacman -Syu

To manually update software packages with Dnf, run this command (as root):

dnf --refresh upgrade

To manually update software packages with Apt, follow these steps (as root):

  1. Run this apt command:

    apt update
    
  2. Run this apt command:

    apt upgrade
    

To manually update software packages with Dnf, run this command (as root):

dnf --refresh upgrade

To manually update software packages with Apt, follow these steps (as root):

  1. Run this apt command:

    apt update
    
  2. Run this apt command:

    apt upgrade
    

To manually update software packages with Zypper, follow these steps (as root):

  1. Run this zypper command:

    zypper refresh
    

    or equivalently:

    zypper ref
    
  2. Run this zypper command:

    zypper update
    

    or equivalently:

    zypper up
    

To manually update software packages with Zypper, follow these steps (as root):

  1. Run this zypper command:

    zypper refresh
    

    or equivalently:

    zypper ref
    
  2. Run this zypper command:

    zypper update
    

    or equivalently:

    zypper up
    

To manually update software packages with Dnf, run this command (as root):

dnf --refresh upgrade

To manually update software packages with Dnf, run this command (as root):

dnf --refresh upgrade

To manually update software packages with Dnf, run this command (as root):

dnf --refresh upgrade

To manually update software packages with Zypper, follow these steps (as root):

  1. Run this zypper command:

    zypper refresh
    

    or equivalently:

    zypper ref
    
  2. Run this zypper command:

    zypper update
    

    or equivalently:

    zypper up
    

To manually update software packages with Apt, follow these steps (as root):

  1. Run this apt command:

    apt update
    
  2. Run this apt command:

    apt upgrade
    

Footnotes