From the course: Linux: Package Managers and Repositories

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Upgrading a package

Upgrading a package - Linux Tutorial

From the course: Linux: Package Managers and Repositories

Start my 1-month free trial

Upgrading a package

- Every now and then it's good to check whether there are feature or security updates for your software. Package management tools make that easy by keeping track of what the currently available version of the given package is and comparing it to what you have installed on your system. Apt and apt-get give us an upgrade command, but it's a little misleading. It certainly does update software, all of it, in fact. Apt upgrade will go and fetch new versions of anything that's installed and bring your packages up to date. If you want to just upgrade one package to the latest version you can use the install command and apt will figure out what you're trying to do. Let's install an older version of Nano and see how to update it. First, I'll remove the current version that's installed with sudu apt remove nano. Then, I'll install that older version that we got from the Nano website with sudo dpkg dash I nano 2.2.6. I can take a look at the info for nano with apt show dash A nano to make sure…

Contents