To upgrade a specific installed package then use following command $ sudo apt install snapd -only-upgrade 6) Full System UpgradeĪlways be careful while upgrading the whole system, as it might remove the installed packages and will install the updated packages. To upgrade all the packages which are currently installed on your system then run ‘ apt upgrade’ command. To remove package and configuration files associated to package then use ‘ apt purge’ $ sudo apt purge nginx 5) Upgrade Package To remove a package then use ‘ apt remove’ command followed by the package name. But when we specify ‘-y’ then it is auto confirm and will install the packages. When we don’t pass ‘-y’ option in ‘apt install’ command then it will prompt you to confirm for its installation. To install a new package, use ‘ apt install‘ command followed by package name, example is shown below: $ sudo apt install nginx To List only upgradeable packages, run $ sudo apt list -upgradeable 3) Installing New Package To list only the installed packages, run $ sudo apt list -installed To list all the available packages including installed and upgradeable use apt list command. It is always recommended to run this command before installing or upgrading packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |