I have a large bunch of Arm Single Board Computers I use for testing a lot. Most of the testing ends up being pretty basic stuff like firmware, kernels, and the various bits of hardware peripherals that people use like storage, network, display and sound output, plus things like sensors and HAT support.
The problem is that these devices often aren’t the fastest in the world for various reasons so I want to be able to apply updates to the basic system as quickly as possible to find out the results. Over time I’ve worked out that these three things speed up dnf quite a bit for the sort of testing I wish to do are as follows:
- Disable modularity:
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/fe*mod*
- Don’t install weak dependencies:
echo "install_weak_deps=False" >> /etc/dnf/dnf.conf
- Disable dnf makecache. It never seems to be up to date when you need it anyway:
systemctl disable dnf-makecache; systemctl mask dnf-makecache
You may need to re-do some of these each major update as they seem to want to force you to have them every time.