Debian upgrade or update a single package using apt-get

ww‮l.w‬autturi.com
Debian upgrade or update a single package using apt-get

To upgrade or update a single package using apt-get on a Debian-based Linux system, you can use the apt-get install command with the --only-upgrade option. This will install the latest version of the package, without installing any new dependencies or upgrading any other packages.

For example, to upgrade the package package_name, you can run the following command:

sudo apt-get install --only-upgrade package_name

This will update the package to the latest available version, while keeping all other packages at their current versions.

You can also use the apt-get upgrade command with the --only-upgrade option to achieve the same result. For example:

sudo apt-get upgrade --only-upgrade package_name

Keep in mind that the apt-get upgrade command will upgrade all installed packages that have available updates, unless you specify the --only-upgrade option.

Created Time:2017-10-28 14:02:27  Author:lautturi