Q:

How to Install Updates Via Command Line on Ubuntu

0

How to Install Updates Via Command Line on Ubuntu

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Use the upgrade Command

If you simply want to upgrade all the packages currently installed on the system to their latest available versions without adding or removing anything, you can use the following two commands:

First begin by updating the package list using the following command:

sudo apt-get update

Now run this command to upgrade the installed packages to their latest available versions:

sudo apt-get upgrade

A list of upgrades will be shown, and prompted to continue. Answer y for yes and press Enter.

You can optionally run dist-upgrade command, which will perform any additional upgrades that involve changing dependencies by adding or removing new packages as necessary.

sudo apt-get dist-upgrade

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Ubuntu / Linux Frequently Asked Questions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How to Delete a Non-empty Directory from Terminal ... >>
<< How to Copy the Contents of a Folder to Another Fo...