Red Hat and Debian GNU/Linux Package Managers
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
Debian Package Manager Command Summary
apt-cdrom
apt-cdrom [options] command- -a, --thorough
-
Do a thorough package scan. May be needed with some old Debian CD-ROMs.
- -c, --config-file
-
Specify a configuration file to be read after the default configuration file.
- -d, --cdrom
-
Specify the CD-ROM mount point, which must be listed in /etc/fstab. The configuration option is Acquire::cdrom::mount.
- -f, --fast
-
Do a fast copy, assuming the files are valid and don't all need checking. Specify this only if this disk has been run before without error. The configuration option is APT::CDROM::Fast.
- -h, --help
-
Print help message and exit.
- -m, --no-mount
-
Don't mount or unmount the mount point. The configuration option is APT::CDROM::NoMount.
- -n, --just-print, --recon, --no-act
-
Check everything, but don't actually make any changes. The configuration option is APT::CDROM::NoAct.
- -o, --option
-
Set a configuration option. Syntax is -o group::tool=option (e.g., APT::CDROM=Fast).
- -r, --rename
-
Prompt for a new label and rename the disk to the new value. The configuration option is APT::CDROM::Rename.
- -v, --version
-
Print the version information and exit.
Add a new CD-ROM to APT's list of available sources. Currently, the only command is add, which is required (except with the --help option). The database of CD-ROM IDs that APT maintains is /var/state/apt/cdroms.list.
Options
Options can be specified on the command line or they may be set in the configuration file. Boolean options set in the configuration file can be overridden on the command line in a number of different ways, a couple of which are --no -opt and -opt=no, where opt is the single-character or full name of the option.
apt-get
apt-get [options] command [package...]- autoclean
-
Like clean, but remove only package files that can no longer be downloaded.
- clean
-
Clear the local repository of retrieved package files.
- check
-
Update the package cache and check for broken packages.
- dist-upgrade
-
Like upgrade but also handle dependencies intelligently.
- dselect-upgrade
-
Used together with dselect. Track the changes made by dselect to the Status field of available packages and take actions necessary to realize that status.
- install package...
-
Install one or more packages. Specify the package name, not the full filename. Other required packages also are retrieved and installed. With a hyphen appended to the package name, the package is removed if it is already installed.
- remove package...
-
Remove one or more packages. Specify the package name, not the full filename. With a plus sign appended to the name, the package is installed.
- source package...
-
Find source packages and download them into the current directory. If specified with --compile, the source packages are compiled into binary packages. With --download-only, the source packages are not unpacked.
- update
-
Resynchronize the package overview files from their sources. Must be done before an upgrade or dist-upgrade.
- upgrade
-
Install the latest versions of all packages currently installed. Run update first.
- -b, --compile, --build
-
Compile source packages after download.
- -c, --config-file
-
Specify a configuration file to read after the default.
- -d, --download-only
-
Retrieve package files, but don't unpack or install them. The configuration option is APT::Get::Download-only.
- -f, --fix-broken
-
Try to fix a system with broken dependencies. Can be used alone or with a command. The configuration option is APT::Get::Fix-Broken.
- --force-yes
-
Force yes. Causes APT to continue without prompting if it is doing something that could damage your system. Use with great caution and only if absolutely necessary. The configuration option is APT::Get::force-yes.
- -h, --help
-
Display a help message and exit.
- --ignore-hold
-
Ignore a hold placed on a package. Use with dist-upgrade to override many undesired holds. The configuration option is APT::Get::Ignore-Hold.
- -m, --ignore-missing, --fix-missing
-
Ignore missing or corrupted packages or packages that cannot be retrieved. Can cause problems when used with -f.
- --no-download
-
Disable package downloading; use with --ignore-missing to force APT to use only the packages that have already been downloaded.
- --no-upgrade
-
Do not upgrade packages. Use with install to prevent upgrade of packages that are already installed. The configuration option is APT::Get::no-upgrade.
- -o, --option
-
Set a configuration option. Syntax is -o group::tool=option (e.g., APT::Get=force-yes).
- --print-uris
-
Print URIs of files instead of fetching them. Print path, destination filename, size, and expected MD5 hash. The configuration option is APT::Get::Print-URIs.
- -q, --quiet
-
Quiet. Omit progress indicators, produce only logging output. Add a q to make even quieter.
- -s, --simulate, --just-print, --dry-run, --recon, --no-act
-
Go through the motions, but don't actually make any changes to the system. The configuration option is APT::Get::Simulate.
- -u, --show-upgraded
-
Print a list of all packages to be upgraded. The configuration option is APT::Get::Show-Upgraded.
- -v, --version
-
Display the version and exit.
- -y, --yes, --assume-yes
-
Automatically reply "yes" to prompts and run noninteractively. Abort if there is an error. The configuration option is APT::Get::Assume-Yes.
A command-line tool for handling packages. Will eventually be a backend to APT.
Commands
Options
Options can be specified on the command line or they may be set in the configuration file. Boolean options set in the configuration file can be overridden on the command line in one of several ways, a couple of which are --no -opt and -opt=no, where opt is the single-character or full name of the option.