Chapter 9 - Managing Software Flashcards

1
Q

What utility is used to manage software on RHEL8?

A

yum or yellowdog updater modified

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

How does a repository help to keep the system current?

A

The maintainer of the repository publishes updated packages in the repository, and the result is that whenever you use the yum command (discussed later in this chapter) to install software, the most recent version of the software is automatically used.

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

After getting a valid subscription to RHEL, which tool should you use to manage your entitlement?

A

Red Hat Subscription Management tool

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

What are the basic tasks involved in managing the entitlement?

A
  1. Register
  2. Subscribe
  3. Enable Repositories
  4. Review and track
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which tool is used for managing subscriptions?

A

subscription-manager tool

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

How can you use the subscription-manager tool?

A
  1. Register a system
  2. List available subscriptions
  3. Automatically attach a subscription
  4. Get an overview
  5. Unregister
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

After registering and attaching a subscription where are the entitlement certificates written to?

A

/etc/pki

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

Where are the certificates stored which indicate what redhat products are installed in the system?

A

/etc/pki/product

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

Where are the certificates are stored that identify the Red Hat account to which the system is registered?

A

/etc/pki/consumer

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

Which directory contains information about the subscriptions that are attached to this system?

A

/etc/pki/entitlement

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

How to tell the server about which repository to use?

A

To tell your server which repository to use, you need to create a file with a name that ends in .repo in the directory /etc/yum.repos.d. In that file you need the following contents:
■ [label] The .repo file can contain different repositories, each section starting
with a label that identifies the specific repository.
■ name= Use this to specify the name of the repository you want to use.
■ baseurl= Contains the URL that points to the specific repository location.

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

What is done to maintain the security of the packages in the repository?

A

To secure packages in a repository, these packages are often signed with a GPG key. This makes it possible to check whether packages have been changed since the owner of the repository provided them.

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

Which command is used to create a repository of your own?

A

createrepo

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

Which directory contains the repository list?

A

a file that ends with .repo in /etc/yum.repos.d

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

Which command helps you search the yum repository using a string?

A

yum search command

Example: yum search user

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

How does the yum search command work?

A

When you use yum search, it first gets in touch with the online repositories (which might take a minute), after which it downloads the most recent repository metadata to the local machine. Then, yum search looks in the package name and description for the string you have been looking for

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

What is the disadvantage of the yum search command?

A

The yum search command looks in the package name and summary only, it often does not show what you need. You often need to look for packages
containing a specific file.
Alternative is “yum whatprovides” command or “yum
provides” command

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

write command using yum to find the package containing the file semanage ?

A

yum whatprovides */semanage

yum provides */semanage

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

What yum command to use to find more information about a package?

A

yum info command

Example : yum info nmap

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

What is the command to install and remove yum packages?

A

yum install and yum remove
Example: yum install
Example: yum remove

21
Q

Which yum command to use to show the list of all software packages that are available?

A

yum list command

22
Q

Which yum command to use to see a list of all installed packages?

A

yum list installed

23
Q

How to use the yum command to see more information about a particular package?

A

yum list

Example: yum list kernel

24
Q

Which command to update the installed packages?

A

yum update
When using the yum update command, current versions of packages that are installed are compared to the version of these packages in the repositories. then when you give y meaning yes, it will proceed with the update

25
Q

What is the yum command that offers group management and to work with groups?

A

yum groups list
yum groups list hidden
yum groups info “group-name”
yum groupinstall

26
Q

While working with yum all actions are registered, what command can we use to see an overview of all the actions that have been issued using yum?

A

yum history

27
Q

How can you undo a yum command?

A

First check the output of yum history command, see the number of the specific action you want to undo, then
yum history undo

28
Q

What are the two different package groups in RHEL 8?

A
  1. Core operating system packages
  2. User Space packages
    Which are also called as or referenced as two main repositories -
  3. BaseOS repository and 2. Application Stream repository.
29
Q

What are the two different repositories in RHEL8?

A

1, BaseOS repository

2. Application Stream repository

30
Q

What is a module in packages?

A

A module describes a set of RPM packages that belong together. In a module you’ll find module packages, together with all of the dependencies for that specific version.

31
Q

What is a RPM?

A

The default package format. Contains files, as well as metadata that describes how to install the files. Optionally may contain pre- and post-installation
scripts as well.

32
Q

In yum module terminology, what is module?

A

A delivery mechanism to install RPM packages. In a module different versions and profiles can be provided.

33
Q

What is an application stream?

A

It is a specific version of the module

34
Q

what is a profile?

A

A collection of packages that are installed together for a particular use case.

35
Q

What command to use to list specific streams for a module?

A
yum module list 
Example: yum module list perl
36
Q

Which yum command to use to get information about specific profiles in module?

A
yum module info
Example: yum module info perl
37
Q

what command to use to install packages from a module?

A
yum module install 
If we do not specify the version then default module stream will be installed.
38
Q

If you. are using php7.1 but now want to switch to php7.2, which command to use

A

yum module install php:7.2
This will disable the old stream and enable the new stream. And then you also have to give below comamnd -
yum distro-sync

39
Q

When. you update to a different module stream version, how to make sure that the dependent packages are also updated?

A

yum distro-sync

40
Q

What is the next step after finding information about the module stream you want to install?

A

enable the module stream and install the modules

41
Q

Which command to enable the module stream?

A
yum module enable 
Example: yum module enable perl:5.24
42
Q

Though using rpm command has become obselete, what is it one use ?

A

rpm command can be used to query RPM packages

43
Q

What are the two package databases maintained in a linux system?

A

YUM database and RPM database

44
Q

Which rpm query command to use to show a list of files that are in a package?

A

rpm -ql

Example: rpm -ql nmap

45
Q

which rpm query command to use to see a description or information about a rpm package?

A

rpm -qi

Example: rpm -qi nmap

46
Q

which rpm query command to use to see a list of documentation available for a rpm package?

A

rpm -qd

Example: rpm -qd nmap

47
Q

which rpm query command to use to see the configuration files involved in a rpm package?

A

rpm -qc

Example: rpm -qc nmap

48
Q

How to find the name of the RPM package from this a specific file comes from?

A

rpm -qf, followed by the specific filename you are looking for.
rpm -qf /bin/ls to find the name of the RPM package the ls command comes from.

49
Q

RPM command to list all the packages that are installed in a server

A

rpm -qa