
Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source.
Ubuntu 20.04 LTS update installed packages for security. apt-get hold back packages on Ubuntu / Debian Linux. What does sudo apt-get update command do on Ubuntu/Debian?. How do I see what packages are installed on Ubuntu Linux?. Ubuntu upgrade or update a single package using apt-get. Debian upgrade or update a single package using apt-get.
How do I update Ubuntu using terminal command line. Ubuntu Enable & Setup Automatic Unattended Security Updates. How Do I Update Ubuntu Linux Softwares Using Command Line?. Ubuntu 18.04 update installed packages for security. This entry is 7 of 13 in the Debian/Ubuntu apt-get Tutorial series. Please note that you need to pass the -only-upgrade to the apt command when you only want that single package upgrade provided that it is installed. You learned how to update a specific package on Debian Linux based system or server. $ sudo apt-get -only-upgrade install nginx However, nginx package not installed on a Debian and I am still requesting an update for it: In this following example, apache2 is installed and I am requesting update. $ sudo apt-get -only-upgrade install apache2 However, the following will not install a new nginx package if not installed: DoneĪpache2 is already the newest version (2.4.25-3+deb9u5).Ġ upgraded, 0 newly installed, 0 to remove and 40 not upgraded. If apache2 package is already installed it will try to update to latest version: Reading package lists.
Let us try to upgrade apache2 web server: $ sudo apt-get -only-upgrade install Package You need to use following format with the apt-get command: Get: 22 stretch/main Translation-en Ĥ0 packages can be upgraded. Get: 11 stretch-updates/main Translation-en.diff/Index Get: 10 stretch-updates/main amd64 Packages.diff/Index Get: 9 stretch-updates/main Sources.diff/Index Get: 7 stretch/updates/main Translation-en Get: 6 stretch/updates/main amd64 Packages