RHCSA Ch4 Flashcards
list dnf repositories
dnf list
list information on a specific package with dnf
dnf info dnf
dnf is the package
list all dnf group s
dnf group list
search for packages
dnf search vim
Reinstall a package
sudo dnf reinstal vim
update a package
dnf list updates
sudo dnf upgrade python3
delete a package
sudo dnf remove teamd
remove any unused dependencies
sudo dnf autoremove
upgrade all packages except one
sudo dnf upgrade -x kernel*
install a specific version of a package and do not allow updates
sudo dnf install python3-dnf-plugin-versionlock
disable kernel upgrades
sudo dnf versionlock add kernel-4.18.0-193.el8
where does the kernel reside and what is the name?
/boot
vmlinuz
how do you make edit to grub and how the system boots
edit /etc/default/grub
then run - sudo grub2-mkconfig
Boot into different kernel
sudo grub2-set-default 1
*** newest version is 0, second newest is 1 etc…
sudo grub2-mkconfig
list modules of current kernel
lsmod
Directory location:
ls /lib/modules/$(uname -r)/kernel
*** $(uname -r) runs the uname command and passes it as a variable