Follow the steps below to turbocharge the installation process of Fedora Linux applications:
Step 1: Upgrade Fedora
Fedora Linux distributions are released every 6 months, bringing improvements and additional features compared to older distributions. If you're facing performance issues while installing packages using Fedora's DNF application installer, the first step is to upgrade to the latest Fedora release.
To upgrade Fedora, open Gnome Software, then click on the release icon and follow the on-screen instructions to update to the latest version of Fedora Linux.
Step 2: Install the Latest Updates
The latest versions of Fedora Linux come with significant features and improvements. Running the latest versions ensures that you have the most up-to-date installation packages.
To run the latest Fedora version, open Gnome Software, then click on the Updates button and follow the on-screen instructions to install the latest updates. Alternatively, you can open the Terminal window using the Ctrl + Alt + T or Ctrl + Shift + T key combination and run the dnf update command below:
sudo dnf update -y
Step 3: Configure DNF to Use the Latest Mirror
The Fedora Package Manager (DNF) doesn't automatically select the latest mirror when installing packages. Instead, it randomly fetches packages from any available location, which may result in slower software installations due to the lack of mirror prioritization.
If you want the DNF package manager to run faster, you can adjust the configuration to enable the 'fastestmirror' feature. It's a simple tweak that forces Fedora to use the fastest mirror, saving download time during the installation process.
To add the 'fastestmirror' feature, first, open a Terminal window on your Fedora Linux machine using the Ctrl + Alt + T or Ctrl + Shift + T key combination. Then open the 'dnf.conf' file in Nano.
Note: As Fedora Linux does not come with Nano pre-installed by default, you will need to manually install it.
sudo nano -w /etc/dnf/dnf.conf
In the 'dnf.conf' file opened in the Nano text editor, use the keyboard arrow keys to navigate to the bottom of the file. Then copy and paste the code below to the bottom of the file using the Ctrl + Shift + V key combination:
fastestmirror=true
After pasting the code into Nano, proceed to save the edits by pressing Ctrl + O.
Step 4: Fine-tune DNF for Simultaneous Package Downloads
Fine-tuning DNF to handle the latest mirrors improves the download speed of the installer. However, a single adjustment might not be sufficient. An ideal solution is to change the number of files the package manager can download from the Internet simultaneously.
To add the number of files that the DNF package manager can download simultaneously, we will insert 'max_parallel_downloads' into the configuration file. To do this, reopen the Nano editor using the command below:
sudo nano -w /etc/dnf/dnf.conf
Within Nano, use the down arrow key to navigate to the bottom of the file. Then paste 'max_parallel_downloads' into the 'dnf.conf' code.
max_parallel_downloads=10
If you find 10 simultaneous downloads a bit too much, feel free to adjust the number of files as you prefer, for example, 5 files:
max_parallel_downloads=5
After inserting 'max_parallel_downloads' into DNF, use the shortcut Ctrl + O to save the edits and close the editor by pressing Ctrl + X.
This Mytour article has just guided you on how to speed up the Fedora Linux application installation process. Additionally, readers can explore other articles on Mytour to learn more about compressing and extracting ZIP files on Linux.