dnf: list all dependencies of a package
dnf repoquery --deplist <package-name>
dnf repoquery --deplist <package-name>
Reboot is needed if one of the following packages was updated:
kernel
glibc
linux-firmware
systemd
dbus
There is an application to easily check it:
sudo dnf install yum-utils
needs-restarting -r
List all files installed by a specific package:
sudo dnf repoquery -l golang-bin
Print how many packages are installed per repository:
sudo dnf list --installed | grep -E -o "@.*" | sort | uniq -c
To list all files installed by dnf package:
rpm -ql dnf
Fedora typically keeps 3 latest kernel versions. However, what if you want to keep an old specific kernel version which is known to work well with your system? First, we need to install a dnf plugin that allows us to keep a specific version of any package:
sudo dnf install python3-dnf-plugins-extras-versionlock
Lets find all available kernel versions for your system:
sudo dnf list kernel --showduplicates
Install that specific version of the kernel:
sudo dnf install kernel-5.3.7-301.fc31
And lock it:
sudo dnf versionlock add kernel-5.3.7-301.fc31
To remove the lock:
sudo dnf versionlock delete kernel-5.3.7-301.fc31
If you need to find out, for example, which package in fedora provides htpasswd command, you may do it with the command:
yum provides \*bin/htpasswd