• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/31

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

31 Cards in this Set

  • Front
  • Back

apt-get permissions

In general it is easiest to run as sudo or change to root level account before running Debian package management commands.

sources.list

This file contains the list of repositories that you can download content from.




The sources section of the list allows download of source code for packages.




The packages section of the list allows for download of the binary packages.

apt-get update

Updates the repository list cache, making available packages for installation from any of those configured repositories.

apt-get upgrade

Upgrades your distribution packages.




If there are updates for packages you have installed then it will list and offer to install them.

apt-get dist-upgrade

Will offer to upgrade your distribution from one version to another if another 'released' version is available.




Beta versions can also be installed, but require a configuration change in the repos file.

apt-get install

This command will install whatever package(s) that you indicate directly following the command, along with the dependencies for it.

apt-get remove

This command will remove whatever package(s) that you indicate directly following the command, along with dependencies that are no longer needed by any other installed packages.

apt-get source

This command will install whatever source package(s) that you indicate directly after the command.

apt-get check

Will check to be sure all application dependencies have been installed for all packages.

apt-get clean

Will clean the apt-cache and require a run of the apt-get update command to further install packages.

apt-get autoremove

Will remove packages that are no longer needed for various reasons (upgrades, manual removal/uninstallation, etc) that did not get cleaned up as part of post-install.

apt-get ... -q

Will quietly complete the apt-get command, output suitable for logging, no progress indicators.

apt-get ... -y

Answer affirmative to any necessary confirmation questions for install/remove/etc, when using apt-get.

apt-get ... -s

Simulates the apt-get installation/removal of the package(s) in question, along with a list of the dependencies affected.

dpkg
Command used to manually install individual .deb packages outside of a repo download.This utility will does not automatically install dependencies, although it will list those that are missing as part of the output.
apt-get install -f
Resolves missing dependencies. Running this command after .deb package installation will download and install the missing dependencies.
apt-get install {debian package}.deb
Will allow for apt-get to scan for dependencies and install and configure them as part of the process.
dpkg -i {package}.deb
Installs a debian package, dependencies not included. May require to be run as sudo/root, different for each package
dpkg --get-selections
Shows all installed packages on the system. When looking for a specific package, follow with '|grep {text}' to filter.
dpkg -L {package name}
Lists all the files that were installed along with the package name as well as their location on the system.
dpkg -C
Audits for partially installed packages.
dpkg --remove {package name}
Removes the referenced package, but just as with the install, dependencies will not be removed.
dpkg --purge {package name}
Will purge the package, along with all configuration files related to that package during a removal.
dpkg --reconfigure {package name}
Will allow the reconfiguration, including the configuration of the files references.
dselect
A high-level package browser. Allows selection and installation/removal of packages in a terminal using an 'ncurses' menu system.
aptitude
Another high level package browser that is similar to dselect. It can be used as a replacement for apt-get as it does everything that apt-get does, including install and manage dependencies.
aptitude update
Will update sources.
aptitude search
Will search for the package indicated.
aptitude autoclean
Same as apt-get clean
aptitude remove
Same as apt-get remove
aptitude autoremove
Same as apt-get autoremove