![]() ![]() New packages will be installed, but existing packages will never be removed. Install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Resynchronize the package index files from their sources. If a plus sign is appended to the package name (with no intervening space), the identified package will be installed instead of removed.Įdit the sources.list file and provides basic sanity checks. Note that removing a package leaves its configuration files on the system. Remove is identical to install except that packages are removed instead of installed. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name (stable, testing, unstable). This will cause that version to be located and selected for install. Install is followed by one or more package names desired for installation or upgrading.Ī specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. Show the package information for the given package(s). Search for the given term(s) and display matching packages. It supports shell pattern for matching package names and the following options: -installed, -upgradable, -all-versions are supported. List is used to display a list of packages. o and -option can be used multiple times to set different options.Īpt/ apt-get and aptitude now share the same list of installed packages and so can be used interchangeably. Set a Configuration Option This will set an arbitrary configuration option. If configuration settings need to be set before the default configuration files are parsed specify aįile with the APT_CONFIG environment variable. The program will read the default configuration file and then this configuration file. List pkg ].Īll command line options may be set using the configuration file, the descriptions indicate the configuration option to set.įor boolean options you can override the config file by using something like -f-,-no-f, -f=no or several other variations.Ĭonfiguration File Specify a configuration file to use. ![]() Search for and install software packages (Debian/Ubuntu).Īpt is a subset of the most commonly used apt-get and apt-cache(8) commands, use apt-get for more the low-level package management options.
0 Comments
Leave a Reply. |