Package Managers Flashcards

1
Q

What is the yum command to look for software?

A

yum search

i.e yum search http

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

What is the yum command to get information about a software package?

A

yum info

i.e yum info httpd

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

What is the yum command to get installed software?

A

yum list installed

i.e yum list installed wireshark

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

What is the yum command to get the dependencies for a package?

A

yum deplist

i.e yum deplist

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

What is the yum command to remove software?

A

yum remove

i. e yum remove httpd
* leaves behind dependencies

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

What is the yum command to remove software including dependencies no longer subsequently needed?

A

yum autoremove

i.e yum autoremove httpd

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

What is the command to show the full path of a shell command?

A

which

i.e which tshark

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

What is the yum command to get a list of repositories being used by the system?

A

yum repolist

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

On red hat based systems, where is repository information saved?

A

/etc/yum.repos.d

Multiple repo files

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

What is the command to clean up the local yum database of packages?

A

yum clean all

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

What is the yum command to update the system?

A

yum update

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

What is the rpm command to install a package?

A

rpm -i

-v verbose -h progress bar

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

What is the rpm command to query a package?

A

rpm -q

-i info

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

What is the format convention for rpm packages?

A

packagename-version.architecture

i.e plexmediaserver-1.13.9.5456-ecd600442.x86_64.rpm

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

What is the rpm command to see what files an rpm installs?

A

rpm -ql

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

What is the rpm command to see the documentation of an rpm?

A

rpm -qd

*lists documentation and man page files

17
Q

What is the rpm command to see the dependencies of an rpm?

A

rpm -qR

*requires

18
Q

What is the rpm command to query an uninstalled package?

A

rpm -qp

-p path

19
Q

What is the rpm command to update an existing package?

A

rpm -U

*updates installed package with newer rpm download

20
Q

What is the rpm command to remove an rpm package?

A

rpm -e

*erase

21
Q

What is the rpm command to check for errors when removing an rpm package?

A

rpm -e –test

22
Q

On debian based systems, where is repository information saved?

A

/etc/apt/sources.list

single file listing repositories

23
Q

What is the apt command to update the cache for a list of available packages?

A

apt update

24
Q

What is the apt command to search for a package?

A

apt search

apt-cache search

25
What is the apt command to install a package?
apt install
26
What is the apt command to remove a package?
apt remove
27
What is the apt command to remove a package including configuration files?
apt remove --purge
28
What is the apt command to remove a package including dependencies?
apt autoremove | apt autoremove *remove all unneeded dependencies
29
What is the apt command to update existing packages on the system?
apt upgrade
30
What is the rpm command to list installed packages?
rpm -qa
31
What is the apt command to update the important system packages including removing unneeded dependencies ?
apt full-upgrade
32
What is the dpkg command to list installed packages?
dpkg --get-selections | -l
33
What is the dpkg command to query an uninstalled package?
dpkg-deb -I
34
What is the dpkg command to see what files a package installs?
dpkg-deb --contents
35
What is the dpkg command to install a package?
dpkg -i
36
What is the command to install dependencies flagged by a failed dpkg install?
apt update *pull down info on dependencies requested by .deb apt -f upgrade
37
What the dpkg command to remove a package?
dpkg -r
38
What is the dpkg command to remove a package including configuration files?
dpkg -P | *purge