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
Q

What is the apt command to install a package?

A

apt install

26
Q

What is the apt command to remove a package?

A

apt remove

27
Q

What is the apt command to remove a package including configuration files?

A

apt remove –purge

28
Q

What is the apt command to remove a package including dependencies?

A

apt autoremove

apt autoremove *remove all unneeded dependencies

29
Q

What is the apt command to update existing packages on the system?

A

apt upgrade

30
Q

What is the rpm command to list installed packages?

A

rpm -qa

31
Q

What is the apt command to update the important system packages including removing unneeded dependencies ?

A

apt full-upgrade

32
Q

What is the dpkg command to list installed packages?

A

dpkg –get-selections

-l

33
Q

What is the dpkg command to query an uninstalled package?

A

dpkg-deb -I

34
Q

What is the dpkg command to see what files a package installs?

A

dpkg-deb –contents

35
Q

What is the dpkg command to install a package?

A

dpkg -i

36
Q

What is the command to install dependencies flagged by a failed dpkg install?

A

apt update
*pull down info on dependencies requested by .deb
apt -f upgrade

37
Q

What the dpkg command to remove a package?

A

dpkg -r

38
Q

What is the dpkg command to remove a package including configuration files?

A

dpkg -P

*purge