Linux 101: How to clean the DNF and APT caches

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…

Keep reading the full content on the TechRepublic site.

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I agree to have my personal information transfered to ConvertKit ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Leave a Comment