apt install only update 1

apt install only update

#For example if apache2 package is already installed, it will try 
#to update to the latest version. If you do not want to install 
#new packages; when used in conjunction with install, only-upgrade
#will install upgrades for already installed packages only and ignore
#requests to install new packages. 

sudo apt --only-upgrade install apache2

Here is what the above code is Doing:
1. sudo – run the command as root
2. apt – the package manager
3. –only-upgrade – only upgrade the package
4. install – install the package
5. apache2 – the package to install

Similar Posts