Chapter 9 - Managing Software Flashcards
What utility is used to manage software on RHEL8?
yum or yellowdog updater modified
How does a repository help to keep the system current?
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.
After getting a valid subscription to RHEL, which tool should you use to manage your entitlement?
Red Hat Subscription Management tool
What are the basic tasks involved in managing the entitlement?
- Register
- Subscribe
- Enable Repositories
- Review and track
Which tool is used for managing subscriptions?
subscription-manager tool
How can you use the subscription-manager tool?
- Register a system
- List available subscriptions
- Automatically attach a subscription
- Get an overview
- Unregister
After registering and attaching a subscription where are the entitlement certificates written to?
/etc/pki
Where are the certificates stored which indicate what redhat products are installed in the system?
/etc/pki/product
Where are the certificates are stored that identify the Red Hat account to which the system is registered?
/etc/pki/consumer
Which directory contains information about the subscriptions that are attached to this system?
/etc/pki/entitlement
How to tell the server about which repository to use?
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.
What is done to maintain the security of the packages in the repository?
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.
Which command is used to create a repository of your own?
createrepo
Which directory contains the repository list?
a file that ends with .repo in /etc/yum.repos.d
Which command helps you search the yum repository using a string?
yum search command
Example: yum search user
How does the yum search command work?
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
What is the disadvantage of the yum search command?
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
write command using yum to find the package containing the file semanage ?
yum whatprovides */semanage
yum provides */semanage
What yum command to use to find more information about a package?
yum info command
Example : yum info nmap