Package Management Flashcards

1
Q

What does RPM stand for?

A

redhat package manager – source of all packages

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

How can you list all the packages installed on your system using the rpm command on the CLI?

A

rpm -qa (q for query, a for all)

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

How do you count the total number of packages available in the system?

A

rpm -qa | wc -l

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

What command can you use to check whether httpd is installed on your system using the rpm utility?

A

rpm -qa | grep httpd or rpm -qa httpd

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

What is the command to install a package using the rpm utility?

A

rpm -ivh <package
name/path>

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

How can you upgrade a package using the rpm utility?

A

rpm -Uvh <package name>

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

How do you remove a package using the rpm command?

A

rpm -e <package name> (e for
erase)

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

What method can you use to determine which package a particular file belongs to?

A

rpm -qf <file path/name>

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

How do you list the contents of an rpm package?

A

rpm -ql <package name>

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

Where is the rpm database stored?

A

/var/lib/rpm

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

What advantages does yum have over rpm?

A

yum – resolves dependencies, do not have to give full path of package

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

What are the drawbacks of using yum?

A

yum has a larger cache, system should be on network, yum depends on rpm, repository dependency, yum is limited to rpm packages, internet and repository dependency

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

How can you download an rpm package using the yum utility?

A

yumdownloader
<package name>

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

What is the procedure for installing a package using the yum utility?

A

yum install
<package name>

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

How do you update and remove packages using the yum utility?

A

yum remove
<package name> yum update <package name>

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

Which directory contains the YUM repositories?

A

/etc/yum.repos.d/

17
Q

What is the configuration file of yum called?

A

/etc/yum.conf

18
Q

How can you list all repositories using the yum command?

A

yum repolist all

19
Q

Where are the yum logs stored?

A

/var/log/yum.log

20
Q

How can you update your system with a single command?

A

yum update

21
Q

Share your insights on system hardening. How have you implemented system hardening within your environment?

A

patching – updating the system , minimum services active. keep minimum ports open. assign sudo access to regular users. establish passwordless access/keys to users. implement strong password. implement dual authentication. set password expiry. (/etc/login.defs – password expiry info and details, e.g number of days after which password will expire.)