102.5 Use RPM and YUM package management Flashcards

1
Q

How do you install the man pages in a RedHat distro?

A

sudo yum install man-pages

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

What is the Yum command that reinstalls a package that becomes corrupt or if a config file becomes damaged?

A

yum reinstall packagename

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

What is the Yum command that finds out what package provides a specified file name?

A

yum whatprovides */packagename

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

What is the Yum command that removes or uninstalls a package and its dependencies?

A

sudo yum autoremove

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

What is the Yum command that uninstalls an application?

A

sudo yum remove packagename

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

What is the Yum command that installs a package and all its dependencies?

A

sudo yum install packagename

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

What is the Yum command that uninstalls an application?

A

sudo yum remove packagename

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

What is the Yum command that installs a package and all its dependencies?

A

sudo yum install packagename

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

What is the Yum command that cleans up all Yum’s cache information and its local database file?

A

yum clean all

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

What is the Yum command that lists information about a specified package?

A

yum info packagename

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

What is the Yum command that searches the Yum repositories for a specified package?

A

yum search packagename

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

What is the Yum command that searches online repositories for updated packages compared to what is currently installed on the system and upgrades packages?

A

yum update

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

Where does Yum cache the latest repository information?

A

It caches repo info in /var/cache/yum

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

What does /etc/yum.repos.d contain?

A

It contains a configuration file for each repository it uses.

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

Where does Yum read repository information from?

A

/etc/yum.repos.d

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

Where is the yum config file?

A

/etc/yum.conf

17
Q

What distros use Yum?

A

RHEL, CentOS, Scientific Linux and old Fedora.

18
Q

Does Yum handle RPM dependencies?

A

Yes, it does. It installs all necessary dependencies for the user.

19
Q

What does YUM stand for?

A

Yellowdog Updater, Modified

20
Q

What rpm command verifies all installed packages?

A

rpm -Va

21
Q

What rpm command erases a package?

A

sudo rpm -e packagename.rpm

22
Q

What rpm command upgrades an already installed package?

A

sudo rpm -Uvh package.rpm

23
Q

What rpm command installs a package?

A

sudo rpm -ivh package.rpm

24
Q

What rpm command displays all installed packages on a system?

A

rpm -qa | less

25
Q

What rpm command displays information on a package?

A

rpm -qpi packagename.rpm

26
Q

What rpm command lists the files contained in a .rpm package?

A

rpm -qpl packagename.rpm

27
Q

Does RPM manage dependencies for the user?

A

No. The user has to resolve the dependencies.

28
Q

What command can you use to repair a corrupted RPM database?

A

rpm –rebuilddb

29
Q

Where is the RPM database located?

A

/var/lib/rpm

30
Q

What does an .rpm contain?

A

the app or utility
the default config files
how and where to install the files
a listing of dependencies the package requires

31
Q

What does RPM stand for?

A

Red Hat Package Manager