Skip to content
Home » How to upgrade a single package using apt-get

How to upgrade a single package using apt-get

If you want to upgrade a single package using apt-get then you should use --only-upgrade. So the below command only installs the specific package without installing any dependencies. Run the below command.

apt-get install --only-upgrade <package_name>

Example: To upgrade only a package called python3-gi then use:

apt-get install --only-upgrade python3-gi

Also Read:

How to save terminal output to a file