Jack Wallen shows you how to clean the caches for both the DNF and APT package managers, so you can solve package installation problems that arise from corrupt installation metadata.
Image: Jack Wallen
Both DNF and APT (the package managers for Red Hat and Ubuntu-based Linux distributions) store cached information to ensure the process of installing software is much faster and reliable. With these caches in place, neither package manager has to download the information every time you attempt to update, upgrade or install software.
But, there are times when that cache information can become outdated or corrupted. When that happens, you might find DNF of APT doesn’t function properly.
What do you do? You clean the cache, which will delete all of that information so you have a clean slate.
How do you clean those…