How To Use The Ubuntu Terminal To Update Packages
Did you just install Ubuntu for the first time? Are you not sure how to use the Terminal to update software packages or update to the most recent versions of Ubuntu? No worries, we’re going to show you how!
The Terminal might be confusing to use at first, but it’s actually really easy and, in most cases, quicker than using the GUI.
How To Upgrade To The Latest Version Of Ubuntu
Upgrading to the most recent version of Ubuntu via the Terminal is actually really easy. First, you’ll want to press Ctrl + Alt + T to open the Terminal. Alternatively, you can click the Ubuntu icon in the top left corner of the screen, and then type in “Terminal” to get the command line.
To upgrade to a new version of Ubuntu, simply type in the command line sudo do-release-upgrade. It’s important to keep in mind that after a new Ubuntu release comes out, it’s worth waiting a couple of days before running the command, simply because the servers are so busy with everyone trying to upgrade all at once.
If you need to update Linux kernel packages, you can use the commands below.
First, in the Terminal type in sudo aptitude update. After that, enter in sudo aptitude safe-upgrade. Finally, enter sudo aptitude full-upgrade.
How To Update Packages
Updating packages is also really simple. We’ll be using the apt-get command. First, type in the command line sudo apt-get update. This grabs the list of currently available updates.
Next, you’ll want to upgrade all of the current packages. The command for this is sudo apt-get upgrade. Finally, you’ll want to install the new updates using the command sudo apt-get dist-upgrade.
And that’s all there is to it! If you want to brush up on your Linux-fu and play around with other commands, you can find an entire directory of commands here.
Need some additional help? Be sure to leave a comment below or join us over in the PCMech Forums!