Speed up dnf in Fedora

You can significantly increase download time for updates by tweaking dnf configuration.

Step 1: Tell dnf to use fastest mirror available to speed up download. Edit /etc/dnf/dnf.conf :

fastestmirror=true

Step 2: Set number of concurrent downloads in/etc/dnf/dnf.conf

  echo  'max_parallel_downloads=20' >>  /etc/dnf/dnf.conf

Step 3: Enable deltarpm :

# dnf install deltarpm 
# vi /etc/dnf/dnf.conf
deltarpm=true 

Step 4: Last but not the least disable all useless repos which can slow down when dnf builds cache for repo.

Published by

Shatadru Bandyopadhyay

Currently working as a Senior Technical Support Engineer at Red Hat Inc. Highly motivated and believer in Collaborative and innovative work. I am inspired by Open Source world and the collaborative projects like Linux and GNU. A part of Fedora Open Source Community, a Red Hat Certified Architect. I like working with Red Hat and feels great to share knowledge with Open Source and Red Hat.

Leave a comment