Use Debian package management Flashcards

1
Q

Are Debian and RPM packages interchangeable?

A

No

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

What does i386.deb signify?

A

A Debian 386 package

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

What does all.deb signify?

A

A Debain package for all CPU types

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

What dpkg command is used to install a Debian package?

A

dpkg -i or –install

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

What is the difference between –remove and –purge?

A

Purge removes a package as well as the configuration files.

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

What dpkg command displays information about an uninstalled Debian package?

A

dpkg -I or –info

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

What dpkg command displays information about an installed Debian package?

A

dpkg -p –print-avail

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

What tool solely shows information about the Debian package database?

A

apt-cache

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

What apt-cache command displays package information?

A

apt-cache showpkg package_name

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

What apt-cache command displays package stats?

A

apt-cache stats

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

What apt-cache command displays package dependencies?

A

apt-cache depends package_name

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

What apt-cache command displays all packages?

A

apt-cache pkgnames xxx

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

Where is the file which lists where packages can be obtained?

A

/etc/apt/sources.list

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

What apt-get command will get up to date information about any new packages available?

A

apt-get update

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

What apt-get command will upgrade the Linux distribution?

A

apt-get dist-upgrade

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

What apt-get command will upgrade the installed packages?

A

apt-get upgrade

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

What command launches a text based menu system for packages?

A

dselect or aptitude

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

Which text based menu system for packages also accepts commands?

A

aptitude

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

What command will reset a package back to its original installation?

A

dpkg-reconfigure package_name

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

Which directory is effectively the Debian package database?

A

/var/lib/dpkg

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

What utility converts package formats?

22
Q

What are the four most important options of alien?

A

–to-deb, –to-rpm, –to-slp, –to-tgz

23
Q

What does APT stand for?

A

advanced package management

24
Q

What dpkg option will use a specified root folder?

A

–root=dir

25
What dpkg option will disable packages that rely on the one being removed?
-B --auto-deconfigure
26
What dpkg option will force actions to be taken?
--force-things
27
What dpkg option will ignore dependency info?
--ignore-depends=package
28
What dpkg option will check for dependencies, conflicts and other problems without installing the package?
--no-act
29
What dpkg option will install all packages that match the wildcard?
--recursive
30
What dpkg option will not install a package if a newer version is already installed?
-G
31
What dpkg option will not install a package if the same version is already installed?
-E --skip-same-version
32
What apt-cache command finds unmet dependencies?
apt-cache unmet
33
What apt-cache command shows all package dependencies?
apt-cache depends package_name
34
What apt-get command installs a package?
install
35
What apt-get command removes a package?
remove
36
What apt-get command gets the newest source package from /etc/apt/sources.list?
source
37
What apt-get command tests the package database for consistency?
check
38
What apt-get command performs housekeeping on the package database?
clean
39
What apt-get command will remove information about packages that cannot be downloaded?
autoclean
40
What apt-get option will download package files but not install them?
-d --download-only
41
What apt-get option will attempt to fix dependency errors?
-f --fix-broken
42
What apt-get option ignores package files that cannot be retreived?
-m --ignore-missing or fix-missing
43
What apt-get option omits progress indicators?
-q --quiet
44
What apt-get option tries the installation without actually performing it?
-s --simulate --just-print --dry-run --recon --no-act
45
What apt-get option answers yes to any y/n prompts?
-y --yes --assume-yes
46
What apt-get option compiles a source package after retreiving it?
-b --compile --build
47
What apt-get option causes apt-get not to install if an older version already exists?
--no-upgrade
48
What is the main configuration file for dpkg?
/etc/dpkg/dpkg.conf
49
What would setting the no-act option in /etc/dpkg/dpkg.conf do?
All dpkg commands would be a test run
50
Where is the apt configuration file?
/etc/apt/apt.conf
51
What would setting the Download-Only "true" option in /etc/apt/apt.conf do?
All apt-get commands would be download only