At times you would want to upgrade only a single package (and the dependcies of said package). Quote often other would recommend using just the following:
sudo apt install [Package-Name]
The issue with the above is that it would add the package the list of manually installed packages. Which would result in this package never being removed if you ever uninstall all packages that are dependent on it.
The solution is to add the –only-upgrade flag as such:
sudo apt install –only-upgrade [Package-Name]
You can view all packages that were manually installed (not installed as dependencies) by using this command:
sudo apt-mark showmanual
It is a good idea to keep a copy of this list with your backups.