288234 files and directories currently installed.) Doneġ upgraded, 0 newly installed, 0 to remove and 8 not upgraded.Īfter this operation, 0 B of additional disk space will be used. $ sudo apt -only-upgrade install ppp Reading package lists. We have 9 updates available but we are just going to update ppp package: Whoopsie/focal-security 0.2.69ubuntu0.1 amd64 Python3-problem-report/focal-security,focal-security 2.20.11-0ubuntu27.6 all Python3-apport/focal-security,focal-security 2.20.11-0ubuntu27.6 all Libwhoopsie0/focal-security 0.2.69ubuntu0.1 amd64 Libssh-gcrypt-4/focal-updates,focal-security 0.9.3-2ubuntu2.1 amd64 Libssh-4/focal-updates,focal-security 0.9.3-2ubuntu2.1 amd64 DoneĪpport-gtk/focal-security,focal-security 2.20.11-0ubuntu27.6 all Īpport/focal-security,focal-security 2.20.11-0ubuntu27.6 all $ sudo apt-get -only-upgrade install atopįirst, download package information from all configured source: However, atop not installed and I am still requesting an update for it: In this following example, htop is installed and I am requesting update. $ sudo apt-get -only-upgrade install nginx However, the following will not install a new nginx package if not installed: Nginx is already the newest version (1.10.3-0ubuntu0.16.04.2).Ġ upgraded, 0 newly installed, 0 to remove and 0 not upgraded. If nginx package is already installed it will try to update to latest version: Reading package lists. $ sudo apt-get -only-upgrade install Package You need to use following format with the apt-get command/ apt command: How to upgrade a single package using apt-get?Īs usual you need to fetch an updated index from the Internet: Let us see all commands and examples in details. Try sudo apt -only-upgrade install apache2 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. If apache2 package already installed it will try to update to the latest version.Now only update apache2 package by running sudo apt install apache2 command.Fetch package index by running sudo apt update command.The procedure to update a a specific package on Ubuntu: How to Ubuntu upgrade or update a single package
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |