![]() Then, upgrade a single package on Ubuntu using the apt install -only-upgrade command.įor example, If i want to upgrade only skypeforlinux package as per my output of the list of upgradable packages apt install -only-upgrade skypeforlinux Reading package lists. So if you want to upgrade a single package on Ubuntu, then you need to update the package cache apt update The following package was automatically installed and is no longer required:įirefox firefox-locale-en libmysqlclient21 skypeforlinux ubuntu-drivers-commonĥ upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 2,381 kB disk space will be freed. NOTE: if i run apt upgrade, all these packages will be marked for upgrade apt upgrade Reading package lists. Ubuntu-drivers-common/focal-updates 1:0.8.6.4~0.20.04.1 amd64 Īs you can see, I have some packages that can be upgraded. Note that the package ought to have already been installed.įor example, let us list the packages that can be upgraded on my Ubuntu 20.04 system apt list -upgradable Listing. So to upgrade a single package on Ubuntu, you would pass yet another option, -only-upgrade to the apt install command such that your command looks like apt install -only-upgrade Where is the name of the package in question. ![]() In order to install a package in Ubuntu, you would usually run the command apt install So how can you upgrade a single package on Ubuntu? ![]() If an upgrade for a package requires the removal of an installed package the upgrade for this package isn’t performed. New packages will be installed if required to satisfy dependencies, but existing packages will never be removed. Ubuntu and other Debian derivatives provides commands such as apt upgrade for upgrading the system packages.Īpt upgrade: is used to install available upgrades of all packages currently installed on the system from the sources configured via sources.list(5). Follow through this guide to learn how to upgrade a single package on Ubuntu. ![]()
0 Comments
Leave a Reply. |