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 - Linux Tutorial
From the course: Linux: Package Managers and Repositories
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
-
-
-
-
(Locked)
The dpkg and APT package managers1m 1s
-
(Locked)
Searching for a package1m 45s
-
(Locked)
Downloading a package2m 30s
-
(Locked)
Finding package information2m 17s
-
(Locked)
Installing a package3m 59s
-
(Locked)
Checking what software is installed1m 41s
-
(Locked)
Exploring aptitude6m 7s
-
(Locked)
Removing a package1m 20s
-
(Locked)
Upgrading a package4m 6s
-
(Locked)
Installing from source4m 41s
-
(Locked)
Managing APT repositories1m 41s
-
(Locked)
-
-