How Do I Update a Linux Package?
Contents

You can update all packages on the system by running apt-get update , then apt-get upgrade . This upgrades all installed versions with their latest versions but does not install any new packages.

How do you update a package?

How to Ubuntu upgrade or update a single package

  1. Open the Terminal application.
  2. Fetch package index by running sudo apt update command.
  3. Now only update apache2 package by running sudo apt install apache2 command.
  4. If apache2 package already installed it will try to update to the latest version.

How do I upgrade or update Linux?

apt-get upgrade : Upgrade is used to install the newest versions of all packages currently installed on the Ubuntu system. sudo apt-get install package-name : Install is followed by one or more packages desired for installation. If package is already installed it will try to update to latest version.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest