How to update Ubuntu from command line

Ubuntu How To Guides

This guide will show you how to update Ubuntu from the command line, this is critical for keeping your Ubuntu server up to date with the latest security patches.

Using the popular Ubuntu command “apt-get” to resync the apt sources and upgrade Ubuntu, other commands such as aptitude or GUI tools could be used as an alternative.

To resync the apt sources:

sudo apt-get update

To upgrade all packages on Ubuntu to the latest version run:

sudo apt-get upgrade

This will update the package if it’s installed or install it from the apt repository if not:

sudo apt-get install PACKAGENAME

Note than an alternative to using apt-get would be aptitude or a GUI tool if you are on a desktop.

Technorati Tags: Command Line, Guides, How-To, Linux, Linux Commands, Ubuntu Commands, Update Ubuntu

About

KJS run's TechSpotting and and has 10+ years of experience in the information technology sector working with Windows, Linux and Mac operating systems.

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress