RHCSA Ch4 Flashcards

1
Q

list dnf repositories

A

dnf list

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

list information on a specific package with dnf

A

dnf info dnf

dnf is the package

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

list all dnf group s

A

dnf group list

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

search for packages

A

dnf search vim

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

Reinstall a package

A

sudo dnf reinstal vim

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

update a package

A

dnf list updates

sudo dnf upgrade python3

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

delete a package

A

sudo dnf remove teamd

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

remove any unused dependencies

A

sudo dnf autoremove

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

upgrade all packages except one

A

sudo dnf upgrade -x kernel*

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

install a specific version of a package and do not allow updates

A

sudo dnf install python3-dnf-plugin-versionlock

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

disable kernel upgrades

A

sudo dnf versionlock add kernel-4.18.0-193.el8

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

where does the kernel reside and what is the name?

A

/boot

vmlinuz

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

how do you make edit to grub and how the system boots

A

edit /etc/default/grub

then run - sudo grub2-mkconfig

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

Boot into different kernel

A

sudo grub2-set-default 1
*** newest version is 0, second newest is 1 etc…
sudo grub2-mkconfig

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

list modules of current kernel

A

lsmod

Directory location:
ls /lib/modules/$(uname -r)/kernel
*** $(uname -r) runs the uname command and passes it as a variable

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

get information on a module

A

modinfo dm-mirror

dm-mirror is a module