rpm Flashcards
1
Q
How would you install an rpm package?
A
rpm -i
-v verbose -h progress
2
Q
How would you upgrade an rpm package?
A
rpm -U
-F upgrade only if already installed
3
Q
How do you list all installed rpm packages?
A
rpm -qa
4
Q
How do you list files installed by an rpm package?
A
rpm -ql
5
Q
How do you get documentation for an rpm package?
A
rpm -qd
6
Q
How do you remove an rpm package?
A
rpm -e
7
Q
How would you update the kernel using rpm?
A
yumdownloader kernel
rpm -i {kernel package}
8
Q
Where are initramfs images located?
A
/boot
9
Q
How would you regenerate initramfs?
A
dracut
10
Q
How do you set the default kernel?
A
grub2-set-default {n}
i.e grub2-set-default 0 *latest kernel
11
Q
How would you list installed kernels?
A
rpm -q kernel