letrelop.blogg.se

Sudo apt update
Sudo apt update








To list all available packages use the following command: sudo apt list The list command allows you to list the available, installed and, upgradeable packages. To remove the unneeded dependencies use the following command: sudo apt autoremove Listing Packages ( apt list) #

sudo apt update

This leftover packages are no longer used by anything else and can be removed. When the package is removed, the dependencies will stay on the system. Whenever a new package that depends on other packages is installed on the system, the package dependencies will be installed too. If you want to remove the package including all configuration files, use purge instead of remove : sudo apt purge package_name Remove Unused Packages ( apt autoremove) # The remove command will uninstall the given packages, but it may leave some configuration files behind. You can also specify multiple packages, separated by spaces: sudo apt remove package1 package2 Type the following: sudo apt remove package_name sudo apt install /full/path/b Removing Packages ( apt remove) # Otherwise, the command will try to retrieve and install the package from the APT repositories. If you want to install multiple packages with one command, specify them as a space-separated list: sudo apt install package1 package2 Installing packages is as simple as running the following command: sudo apt install package_name sudo apt full-upgradeīe extra careful when using this command. The difference between upgrade and full-upgrade is that the later will remove the installed packages if that is needed to upgrade the whole system. It is always a good idea to configure automatic security updates If you want to upgrade a single package, pass the package name: sudo apt upgrade package_name The command doesn’t upgrade packages that require removal of installed packages. To upgrade the installed packages to their latest versions run: sudo apt upgrade Regularly updating your Linux system is one of the most important aspects of overall system security. APT (Advanced Package Management Tool) Complete beginner's guide for Linux sudo apt updateĪlways update the package index before upgrading or installing new packages.










Sudo apt update