1.6 Given a scenario, build and install software Flashcards

1
Q

Where is the RPM database located?

A

/var/lib/rpm

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

If the RPM database gets corrupted, what command can be run to rebuild it?

A

rpm –rebuilddb

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

What is the major difference between RPM and YUM or APT?

A
  1. RPM is just a package format, it requires use of an external tool to download packages.
  2. YUM & APT are actual package managers and can download packages directly from repos
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command can be used the verify an RPM package before installing it?

A

rpm –checksig

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

What is different about the package name option when using RPM to install it for the first time?

A

When installing a package for the first time, the full filename must be specified, i.e. “gftp.2.2.3.12-fc1.x86_64.rpm”
Just “gftp” can be used with RPM once it has been installed

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

What is the RPM command to install a package?

A

rpm -i [package file name]

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

What 2 options can be used when installing a RPM package to get feedback on the progress?

A

-h prints hashmarks with progress %
-v provides verbose output to the screen

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

True/False: RPM automatically resolves dependencies when installing a package?

A

False, installation will fail and a list of dependencies will be provided

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

What command can be used to verify dependencies without actually installing a RPM package?

A

rpm -i –test [package file name]

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

What is the RPM command to remove/uninstall a package?

A

rpm -e [package name]

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

What is a potential “gotcha” when uninstalling RPM packages?

A

It does not automatically remove dependencies, and will fail if all its dependencies have not been removed first

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

What is the RPM command to update an installed package?

A

rpm -U [package name]

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

What is a hidden function of the RPM update command?

A

It can be used even if the package is not already installed, to install a new package

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

What RPM command displays information about an installed package?

A

rpm -qi [package name]

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

What RPM command displays a list of packages that require a specified package?

A

rpm -q –whatrequires [package name]

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