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?

A

alien

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
Q

What dpkg option will disable packages that rely on the one being removed?

A

-B –auto-deconfigure

26
Q

What dpkg option will force actions to be taken?

A

–force-things

27
Q

What dpkg option will ignore dependency info?

A

–ignore-depends=package

28
Q

What dpkg option will check for dependencies, conflicts and other problems without installing the package?

A

–no-act

29
Q

What dpkg option will install all packages that match the wildcard?

A

–recursive

30
Q

What dpkg option will not install a package if a newer version is already installed?

A

-G

31
Q

What dpkg option will not install a package if the same version is already installed?

A

-E –skip-same-version

32
Q

What apt-cache command finds unmet dependencies?

A

apt-cache unmet

33
Q

What apt-cache command shows all package dependencies?

A

apt-cache depends package_name

34
Q

What apt-get command installs a package?

A

install

35
Q

What apt-get command removes a package?

A

remove

36
Q

What apt-get command gets the newest source package from /etc/apt/sources.list?

A

source

37
Q

What apt-get command tests the package database for consistency?

A

check

38
Q

What apt-get command performs housekeeping on the package database?

A

clean

39
Q

What apt-get command will remove information about packages that cannot be downloaded?

A

autoclean

40
Q

What apt-get option will download package files but not install them?

A

-d –download-only

41
Q

What apt-get option will attempt to fix dependency errors?

A

-f –fix-broken

42
Q

What apt-get option ignores package files that cannot be retreived?

A

-m –ignore-missing or fix-missing

43
Q

What apt-get option omits progress indicators?

A

-q –quiet

44
Q

What apt-get option tries the installation without actually performing it?

A

-s –simulate –just-print –dry-run –recon –no-act

45
Q

What apt-get option answers yes to any y/n prompts?

A

-y –yes –assume-yes

46
Q

What apt-get option compiles a source package after retreiving it?

A

-b –compile –build

47
Q

What apt-get option causes apt-get not to install if an older version already exists?

A

–no-upgrade

48
Q

What is the main configuration file for dpkg?

A

/etc/dpkg/dpkg.conf

49
Q

What would setting the no-act option in /etc/dpkg/dpkg.conf do?

A

All dpkg commands would be a test run

50
Q

Where is the apt configuration file?

A

/etc/apt/apt.conf

51
Q

What would setting the Download-Only “true” option in /etc/apt/apt.conf do?

A

All apt-get commands would be download only