Title: Theory / Unimportant / CS / command line / admin / apt / install
Tags: fromCommand fromCommandLine computer_to_instruction hasNotNewEffectReturnsMeaning some_instruction Variable_missing_meaning
On every note of this deck, unless a note says otherwise:
Page: man

Instruction: update
Page: man
Effect: Used to re-synchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list(5)
Context: apt-get

Instruction: dist-upgrade
Page: man
Effect: In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones, if necessary.
Context: apt-get

Instruction: +package
Page: man
Effect: designate a package to install. These latter features may be used to override decisions made by apt-get's conflict resolution system.
Context: apt-get install

Variable: /foo
Meaning: Choose the distribution foo , testing, unstable, etc...
Page: man
Context: apt-get install package
Initialization: stable

Instruction: build-dep source_pkg
Page: man
Effect: Causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.
Context: apt-get

Instruction: check
Page: man
Effect: Diagnostic tool; it updates the package cache and checks for broken dependencies.
Context: apt-get

Instruction: clean
Page: man
Effect: Clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
Context: apt-get

Instruction: autoclean
Page: man
Effect: Like clean, it clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period of time without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.
Context: apt-get

Fla: --ignore-hold
Effect: Ignore package Holds. This causes apt-get to ignore a hold placed on a package. This may be useful in conjunction with dist-upgrade to override a large number of undesired holds.
Prefix: apt-get

Fla: --list-cleanup
Effect: When on, apt-get will automatically manage the contents of /var/lib/apt/lists to ensure that obsolete files are erased. The only reason to turn it off is if you frequently change your source list.
Prefix: apt-get

Fla: -t
Effect: This option controls the default input to the policy engine. It creates a default pin at priority 990 using the specified release string. The preferences file may further override this setting. In short, this option lets you have simple control over which distribution packages will be retrieved from. Some common examples might be -t '2.1*' or -t unstable.
Prefix: apt-get

Fla: --trivial-only
Effect: Only perform operations that are "trivial".
Prefix: apt-get

Fla: -h
Effect: Show a short usage summary.
Prefix: apt-get

Fla: -v
Effect: Show the program version.
Prefix: apt-get

Fla: -b
Effect: Compile source packages after downloading them.
Prefix: apt-get

Instruction: apt-get
Page: man
Effect: package handling utility - command-line interface

Instruction: upgrade
Page: man
Effect: Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list(5). Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, nor are packages that are not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. An update must be performed first so that apt-get knows that new versions of packages are available.
Context: apt-get

Instruction: Each package is a package name, not a fully qualified filename
All packages required by the package(s) specified for installation will also be retrieved and installed. The /etc/apt/sources.list(5) file is used to locate the repositories for the desired packages.
Page: man
Effect: install listPackage
Context: apt-get
Example: for instance, in a Fedora Core system, glibc would be the argument provided, not glibc-2.4.8.i686.rpm

Fla: -Package
Effect: the identified package will be removed if it is currently installed.
Prefix: apt-get install

Instruction: =version number
Page: man
Effect: Choose a specific version of the package
Context: apt-get install package

Instruction: Similar to install, but - is default instead of +
Page: man
Effect: remove
Context: apt-get

Instruction: source source_pkg
Page: man
Effect: Causes apt-get to fetch source packages. APT will examine the available packages to decide which source package to fetch. It will then find and download into the current directory the newest available version of that source package. Source packages are tracked separately from binary packages via rpm-src type lines in the sources.list(5) file. This probably will mean that you will not get the same source as the package you have installed, or could install.
Context: apt-get

Fla: --compile
Effect: The package will be compiled to a binary using rpmbuild
Prefix: apt-get source source_pkg

Fla: --download-only
Effect: Source package will not be unpacked.
Prefix: apt-get source source_pkg

Instruction: =version
Page: man
Effect: state which version to fetch
Context: apt-get source source_pkg

Fla: -d
Effect: Download only; package files are only retrieved, not unpacked or installed.
Prefix: apt-get

Fla: -f
Effect: Fix.
Prefix: apt-get
Extra: Attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. Any package(s) that are specified must completely correct the problem. This option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention. Use of this option together with -m may produce an error in some situations.

Fla: -m
Effect: Ignore missing packages.
Prefix: apt-get
Extra: If packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back those packages and handle the result. Use of this option together with -f may produce an error in some situations. If a package is selected for installation (particularly if it is mentioned on the command-line) and it could not be downloaded then it will be silently held back.

Fla: --no-download
Effect: Disables downloading of packages. This is best used with --ignore-missing to force APT to use only the rpms it has already downloaded.
Prefix: apt-get

Fla: -q
Effect: Produces output suitable for logging, omitting progress indicators.
Prefix: apt-get
Extra: More q's will produce more quiet up to a maximum of two. You can also use -q=# to set the quiet level, overriding the configuration file. Note that quiet level 2 implies -y, you should never use -qq without a no-action modifier such as -d, --print-uris or -s as APT may decided to do something you did not expect.
Intuition: Quiet

Fla: -s
Effect: No action. Perform a simulation of events that would occur but do not actually change the system.
Prefix: apt-get

Fla: -y
Effect: Assume "yes" as answer to all prompts and run non-interactively.
Prefix: apt-get
Assuming: If an undesirable situation, such as changing a held package or removing an essential package, occurs then apt-get will abort.

Fla: -u
Effect: Show upgraded packages. Print out a list of all packages that are to be upgraded.
Prefix: apt-get

Fla: -V
Effect: Show full versions for upgraded and installed packages.
Prefix: apt-get

Fla: --no-upgrade
Effect: Do not upgrade packages. When used in conjunction with install, it will prevent packages listed from being upgraded if they are already installed.
Prefix: apt-get

Fla: --force-yes
Effect: Force yes.
Prefix: apt-get
Extra: This is a dangerous option that will cause apt-get to continue without prompting if it is doing something potentially harmful. It should not be used except in very special situations. Using this option can potentially destroy your system!

Fla: --print-uris
Effect: Instead of fetching the files to install, their URIs are printed. Each URI will have the path, the destination file name, the size and the expected md5 hash. Note that the file name to write to will not always match the file name on the remote site! This also works with the source and update commands. When used with the update command, the MD5 and size are not included, and it is up to the user to decompress any compressed files.
Prefix: apt-get

Fla: --reinstall
Effect: Re-Install packages that are already installed and at the newest version.
Prefix: apt-get

Fla: --no-list-cleanup
Effect: turn off --list-cleanup
Prefix: apt-get

Fla: --no-remove
Effect: If any packages are to be removed apt-get immediately aborts without prompting.
Prefix: apt-get

Fla: --only-source
Effect: Indicates that the given source names are not to be mapped through the binary table. This means that if this option is specified, the source command will only accept source package names as arguments, rather than accepting binary package names and looking up the corresponding source package.
Prefix: apt-get source source_pkg

Fla: -c
Effect: Specify a configuration file to use. The program will read the default configuration file and then this configuration file. See apt.conf(5) for syntax information.
Prefix: apt-get

Page: man
Effect: Set a Configuration Option. This will set an arbitrary configuration option.
Context: apt-get
Abbreviation: -o option=value