Admin Flashcards

1
Q

register system

A

subscription-manager register –username <yourusername></yourusername>

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

View available subscriptions for your Red Hat account

A

subscription-manager list –available

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

Auto-attach a subscription

A
subscription-manager attach --auto
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

attach a subscription from a specific pool from the list of available subscriptions

A
subscription-manager attach --pool=poolID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

View consumed subscriptions

A

subscription-manager list –consumed

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

Unregister a system

A

subscription-manager unregister

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

Where are entitlement certificates stored

A

/etc/pki/product : installed Red Hat products.

/etc/pki/consumer : Red Hat account for registration.

/etc/pki/entitlement : attached subscriptions

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

Which item helps to register the system to Red Hat Subscription Management without a username and password?

A

Activation keys

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

Which GUI tool is used to register and subscribe a system?

A

Red Hat Subscription Manager

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

Explain

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

List all installed rpm packages

A

rpm -qa

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

Determine which package provides FILENAME

A

rpm -qf /etc/yum.repos.d

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

List the currently installed package version of a package

A
rpm -q cronie
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Get detailed package information

A

rpm -qi

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

List the files that the package installs

A

rpm -ql

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

List only the configuration files that the package installs

A

rpm -qc openssh-clients

17
Q

List only the documentation files that the package installs

A

rpm -qd openssh-clients

18
Q

List the shell scripts that run before or after you install or remove the package

A
rpm -q --scripts openssh-server
19
Q

List the change log information for the package

A
rpm -q --changelog audit
20
Q

List the files that the local package installs

A

ls -l podman-4.0.0-6.el9.x86_64.rpm

21
Q

install an RPM package that you downloaded to your local directory

A

rpm -ivh podman-4.0.0-6.el9.x86_64.rpm

22
Q

command to extract files from an RPM package file without installing the package

A

rpm2cpio

23
Q

what is the output format of rpm2cpio command ?

A

cpio

24
Q

Extract rpm and print the content to standard out

A

rpm2cpio httpd-2.4.51-7.el9_0.x86_64.rpm | cpio -idv

25
Q

Extract one specific file from rpm

A

rpm2cpio httpd-2.4.51-7.el9_0.x86_64.rpm | cpio -id “*/etc/httpd/conf/httpd.conf”

26
Q

list the files in an RPM package

A

rpm2cpio httpd-2.4.51-7.el9_0.x86_64.rpm | cpio -tv

rpm -q -p rhcsa-script-1.0.0-1.noarch.rpm -l