helosa.blogg.se

Sudo apt update
Sudo apt update




Uninstall the software package named pkg, but do not remove any configuration files that might have been modified on your system. If you add a slash (" /") followed by a release codename of your Linux distribution, apt uses the software package from that release. You can also append an equals sign (" =") at the end of the name, followed by a specific version number, to apply the command only to that version of the software. In this command, and with remove and purge, you can specify multiple package names with a plus sign (" +") or a minus sign (" -") at the end of the name to mark it for installation or removal. The name pkg can be the exact name of a package, a regular expression, or use wildcards.

sudo apt update sudo apt update

This is the equivalent of apt-get dist-upgrade. Perform an upgrade, but also remove outdated or incompatible packages, if necessary, to fully upgrade the system. If no package is specified, all currently-installed packages are upgraded. Install the upgraded versions of package pkg. This information is used by apt to perform most of its other operations, including installation, upgrading, dependency management, and listing package information.Īn update should always be run before an upgrade or a full-upgrade. The update command downloads up-to-date information about available software packages.

sudo apt update

CommandsĪny commands listed below that make changes to your system must be run by the superuser, or with the sudo command. It is also available on Windows 10 systems that use the default Ubuntu Windows Subsystem for Linux. If you need to save or process the output of apt, it's a good idea to use apt-get instead.Īpt is available on several modern Linux distributions, primarily Debian and Ubuntu. However, these formatting changes make apt unsuitable for capturing output to a file, or processing it with another tool such as grep. For instance, it provides colorization and fancier formatting of text output, and an animated progress bar when installing software. The apt command performs a similar function to apt-get, but with some additional functions, conveniences, and features.






Sudo apt update