Linux: Update All Packages Command

by on January 30, 2013 · 0 comments· LAST UPDATED January 30, 2014

in , , , , ,

How do I update all installed packages on Linux operating systems? How do I perform upgrading packages through a network on Linux operating systems?

Linux has various commands to update all installed packages. Please note that system and package updates should be performed with care. It is very important to have up to date backup before you do this. The exact command depends upon your Linux distribution:

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
RequirementsNone
Estimated completion time1m
  1. Debian / Ubuntu / Mint Linux and friends try apt-get command.
  2. CentOS / RHEL / Red Hat / Fedora Linux and friends try yum command.
  3. Suse / OpenSUSE Linux use zypper command or graphical tool called YaST online update.
  4. Slackware Linux user try slackpkg command.
  5. Arch Linux user try pacman command.
  6. Gentoo Linux user try emerge command.

apt-get command example to update all packages on the Debian or Ubuntu Linux

$ sudo apt-get update
$ sudo apt-get upgrade

See apt-get command tutorial for more information.

yum command example to update all packages on the RHEL/CentOS/Red Hat/Fedora Linux

# yum update
See yum command tutorial for more information.

zypper command example to update all packages on the OpenSUSE/Suse Linux

# zypper refresh
# zypper update

See zypper Opensuse command tutorial or Novell SUSE Linux tutorial to update all package for more info.

pacman command example to update all packages on the Arch Linux

# pacman -Syu
OR
# pacman --sync --refresh --sysupgrade
See pacman package manager documentation for more information.

emerge command example to update all packages on the Gentoo Linux

# emerge --sync
# emerge --update --deep --with-bdeps=y @world

See emerge package manager documentation for more information.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 0 comments… add one now }

Leave a Comment

Tagged as: , , , , ,

Previous Faq:

Next Faq: