Package Management Flashcards

1
Q

dpkg –info

A

shows information about a package from a package file

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

dpkg –status

A

an abbreviated version of –info

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

dpkg –search

A

searches for a package via package database. will include file names in the search

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

dpkg –list

A

searches for a package via the package database. a good way to see if the package is installed

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

apt dist-upgrade

A

will update all packages on the system and will remove minor packages to fix dependencies issues

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

apt upgrade

A

will update all packages on the system but will not remove anything

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

apt update

A

reads the /etc/apt/sources.list and updates local cache

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

apt-cache search

A

searches for a package in remote repos

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

apt-cache show

A

shows information about a package and its dependencies

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

apt-cache showpkg

A

shows information about packages but more detailed then show

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

rpm -K

A

checks the MD5 GPG signature

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

rpm -i

A

install a package

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

rpm -V

A

verifies the package, runs some tests

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

rpm -e

A

erase or remove a package

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

rpm -U

A

upgrades a package. will install a package if its not installed

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

rpm -F

A

freshens a package, it will upgrade a package but will not install it if it is not currently installed

17
Q

rpm -q

A

queries to see if a package is installed

18
Q

rpm -qil

A

used for installed packages, with short or long name format

19
Q

rpm -qilp

A

used for uninstalled packages with a file specified

20
Q

yum list

A

searches remote repos for a package

21
Q

main config file for yum

A

/etc/yum.conf

22
Q

yum repo config files are store in this dir

A

/etc/yum.repos.d