apt-get Flashcards

1
Q

apt-get

A

apt-get is the command-line tool for handling packages, and may be considered the user’s “back-end” to other tools using the APT library.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

apt-get upgrade

apt-get update

apt-get dist-upgrade

A

update, Update is used to resyncronize the package index files from their sources. The index of available packages is at /etc/apt/sources.list.

upgrade, Upgrade is used to install the newest versions of all packages currently installed on the system.

dist-upgrade, Dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new package versions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

apt-get install

apt-get install –only-upgrade

A

install, Install is followed by one or more packages desired for installation or upgrading.

install –only-upgrade, Does not install new packages; when used with install it will only install upgrades for already installed packages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

apt-get remove

apt-get purge

A

remove, Remove is identical to install except that packages are removed instead of installed. Configuration files for the package will not be removed.

purge, Purge is identical to remove except that packages are removed and configuration files are purged.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

apt-get clean

A

clean, Clean clears out the local repository of retrieved package files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

apt-get source

apt-get –download-only source

apt-get –compile source

A

source, Source causes apt-get to fetch source packages. It will find and download the newest available version of source package.

–download-only source, Source still fetches and downloads the source package, but doesn’t unpack the file.

–compile source, The compile option will compile the source package into a .deb using dpkg-buildpackage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

apt-get download

apt-get changelog

apt-get check

A

download, Download will download the given binary package into the current directory without installing it.

changelog, Changelog tries to download the changelog of a package and display it. By default it downloads the option that is installed.

check, Check is a diagnostic tool; it updates the package cache and checks for broken dependencies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

apt-get build-dep

apt-get autoclean

A

build-dep, Build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.

autoclean, Like clean, autoclean clears out the local repository of retrieved package files. However, the difference is that it only removes packages that cannot be downloaded anymore.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

apt-get -y

A

-y, –yes, –assume-yes, These options provide an automatic yes to prompts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly