rpm Flashcards

1
Q

How would you install an rpm package?

A

rpm -i

-v verbose -h progress

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

How would you upgrade an rpm package?

A

rpm -U

-F upgrade only if already installed

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

How do you list all installed rpm packages?

A

rpm -qa

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

How do you list files installed by an rpm package?

A

rpm -ql

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

How do you get documentation for an rpm package?

A

rpm -qd

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

How do you remove an rpm package?

A

rpm -e

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

How would you update the kernel using rpm?

A

yumdownloader kernel

rpm -i {kernel package}

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

Where are initramfs images located?

A

/boot

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

How would you regenerate initramfs?

A

dracut

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

How do you set the default kernel?

A

grub2-set-default {n}

i.e grub2-set-default 0 *latest kernel

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

How would you list installed kernels?

A

rpm -q kernel

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