{"id":2207,"date":"2026-05-26T14:21:17","date_gmt":"2026-05-26T07:21:17","guid":{"rendered":"https:\/\/tutorial.emka.web.id\/?p=2207"},"modified":"2026-05-26T14:21:17","modified_gmt":"2026-05-26T07:21:17","slug":"top-dnf5-tips-to-make-your-fedora-linux-super-fast","status":"publish","type":"post","link":"https:\/\/emka.web.id\/en\/2026\/05\/top-dnf5-tips-to-make-your-fedora-linux-super-fast.html","title":{"rendered":"Top DNF5 Tips to Make Your Fedora Linux Super Fast"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you use Fedora 44, you are using DNF5 now even if you do not know it. The old DNF4 is gone and your old commands only work because Fedora helper tools make them work. This guide shows you the real new DNF5 commands so you can install things quickly, fix errors easily, and make your computer fast. We will learn how to search, install, upgrade, and fix problems with step by step guides.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">First, you need to check if your computer is really using DNF5. You can open your terminal and check the files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: Check your DNF5 version<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You must write this command to see where the terminal shortcut goes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>readlink -f \/usr\/bin\/dnf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command should show you <code>\/usr\/bin\/dnf5<\/code> on your screen. Now, check the version of DNF5 by typing this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 --version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When you run this command, it will print many lines. It should say dnf5 version 5.4.2.1 or a higher number. It also shows you the loaded plugins like builddep, changelog, copr, and config-manager. If your computer does not have DNF5 for some reason, you can install it using this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 install dnf5 dnf5-plugins<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will install the package manager and the extra tools that help it do more things.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: How to search and find packages<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before you install any app, you need to find out if Fedora has it. You can do this with simple search commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To search for an app like htop, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 search htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To see detailed information about the app, like how big it is and what it does, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 info htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to see all the kernels installed on your system, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 list --installed \"kernel*\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is very good to use when your hard drive is full and you want to see which old kernels are taking up your space.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have a file on your computer but do not know which package it belongs to, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 provides \/usr\/bin\/htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to know what other packages need this app, or what this app needs to run, you can use these commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 repoquery --requires htop<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 repoquery --whatrequires libcurl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to see what the developers changed in the update before you install it, use this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 changelog htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command is very good because it reads the text from the internet so you do not have to install the package first to see the changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3: How to install, reinstall, and delete packages<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installing apps with DNF5 is very simple but there are some special options you can use to make it better.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install htop, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 install -y htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The -y option is good because it says yes to everything automatically so you do not have to press the Y key on your keyboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not want to install extra packages that are not necessary, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 install -y --setopt=install_weak_deps=False htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This keeps your system very light and clean.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your app is broken and you want to install it again to fix it, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 reinstall -y htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To delete the app from your computer, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 remove -y htop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After you delete many apps, you might have useless files left on your computer. To clean them up, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 autoremove -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to swap one package for another package without breaking your system, use the swap command like this:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo dnf5 swap ffmpeg-free ffmpeg &#8211;allowerasing<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see a list of packages that you installed yourself and are not needed by other apps, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 leaves<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is useful to find apps that you forgot you installed so you can delete them and save space.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4: How to update your computer<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Updating your computer often is very important so you get security fixes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see what updates are ready for your computer, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 check-upgrade<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To install every update, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 upgrade -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you only want to install small security fixes because you are scared that big updates will break your system, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 upgrade-minimal -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To make all your packages match the versions on the Fedora servers exactly, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 distro-sync -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you have an important package like the kernel and you do not want it to ever update, you can lock it. First, install the versionlock plugin:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 install -y dnf5-plugins<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, lock your kernel package using this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 versionlock add kernel-core<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to see all your locked packages, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 versionlock list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you change your mind and want to let the package update again, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 versionlock delete kernel-core<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5: How to use groups and environments<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes you want to install many apps at the same time for a specific job, like programming. Fedora groups these apps together.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see all the groups, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 group list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To see what apps are inside a group called Development Tools, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 group info \"Development Tools\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To install the whole group of apps at once, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 group install -y \"Development Tools\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Environments are even bigger than groups because they change your whole desktop look. To see all the desktop environments, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 environment list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 6: How to manage repositories and COPR<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Repositories are online stores where Fedora gets your apps. You can add new stores to get more apps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see all your active stores, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf5 repo list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To add a new store using a web link, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 config-manager addrepo --from-repofile=https:\/\/download.docker.com\/linux\/fedora\/docker-ce.repo<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To enable a store that is turned off, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 config-manager setopt fedora-cisco-openh264.enabled=1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To turn off a store, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 config-manager disable fedora-cisco-openh264<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">COPR is a special place where normal people share their own apps. To use COPR, follow these steps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, enable the COPR repository you want:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 copr enable atim\/starship<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, install the app from that repository:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 install -y starship<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To see all the COPR repositories you use, type this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 copr list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To turn off the COPR repository, type this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 copr disable atim\/starship<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To delete the repository file completely, type this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 copr remove atim\/starship<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 7: How to see your history and undo mistakes<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DNF5 remembers everything you install or delete. If you make a mistake, you can go back in time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see a list of everything you did, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 history list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will show you a table with numbers. Each number is a transaction. To see details about transaction number 5, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 history info 5<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If transaction 5 installed a bad package that broke your computer, you can undo it by typing this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 history undo 5<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will delete the packages that were installed in that step and reinstall anything you deleted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have two computers and want to install the exact same packages on both, you can save your transaction to a file. On your first computer, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 install --store=\/tmp\/dev-install htop tmux fish<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Copy that folder to your second computer and run this command on the second computer:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 replay \/tmp\/dev-install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This makes the second computer do the exact same thing as the first one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 8: Make your DNF5 download very fast<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, DNF5 downloads files slowly because it only downloads 3 files at the same time. You can change this to 10 to make it very fast.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the configuration file using a text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vi \/etc\/dnf\/dnf.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Change the file so it looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;main]<br>gpgcheck=True<br>installonly_limit=3<br>clean_requirements_on_remove=True<br>best=False<br>skip_if_unavailable=True<br>max_parallel_downloads=10<br>fastestmirror=True<br>defaultyes=True<br>keepcache=True<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here is what these settings mean in simple words:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>gpgcheck: Checks if the package is safe and has a real signature. Always keep this True.<\/li>\n\n\n\n<li>installonly_limit: How many old kernels to keep. 3 is a good number.<\/li>\n\n\n\n<li>clean_requirements_on_remove: Deletes extra dependencies when you delete an app.<\/li>\n\n\n\n<li>best: If the newest app has a problem, it will install a slightly older one instead of failing.<\/li>\n\n\n\n<li>skip_if_unavailable: If one online store is down, do not stop the whole update.<\/li>\n\n\n\n<li>max_parallel_downloads: Downloads 10 files at once. This makes updates finish much faster.<\/li>\n\n\n\n<li>fastestmirror: Finds the download server that is closest to your house.<\/li>\n\n\n\n<li>defaultyes: You do not have to press Y every time you install something.<\/li>\n\n\n\n<li>keepcache: Keeps the downloaded files on your disk so you do not have to download them again if the installation fails.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">After you save this file, clear the old files and update the system information:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 makecache<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 clean all<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 9: How to upgrade Fedora to a new version<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When Fedora releases a new version, you can upgrade your system safely using these steps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, update your current system completely:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 upgrade -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, download the files for the new version, for example Fedora 44:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 system-upgrade download --releasever=44<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will download all the big files in the background while you use your computer. Once it is finished, restart your computer to start the upgrade process:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 system-upgrade reboot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Your computer will restart and show a progress screen. Do not turn off your computer. After it boots back to your desktop, you can check if it worked:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 system-upgrade status<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If something went wrong, you can look at the logs using this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 system-upgrade log<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To clean up the big download files after a successful upgrade, type this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 system-upgrade clean<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 10: How to fix common DNF5 errors<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes you will see errors in your terminal. Here is how to fix the three most common ones.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you see an error that says &#8220;Public key is not installed&#8221;, it means your computer does not trust the online store. You can fix this by importing the security key manually:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rpm --import https:\/\/download.docker.com\/linux\/fedora\/gpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then try to install your app again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you see a dependency problem error where packages conflict, you can try to disable the bad repository to see if it fixes the problem:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 upgrade --disablerepo=docker-ce-stable<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you see an error that says &#8220;Cannot download Packages: All mirrors were tried&#8221;, your internet or the Fedora servers are having a bad day. You can clear the cache and tell DNF5 to try more times:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 clean all<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 --setopt=retries=20 makecache<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf5 upgrade -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This tells the package manager to try 20 times before giving up, which usually fixes temporary network errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use Fedora 44, you are using DNF5 now even if you do not know it. The old DNF4 is gone and your&#8230;<\/p>\n","protected":false},"author":27,"featured_media":2208,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[4282,4283,4284,4285,4286,4287,4288,4289,4290,4291],"class_list":["post-2207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","tag-dnf5-group-install-development-tools","tag-dnf5-parallel-downloads-configuration","tag-dnf5-versionlock-how-to-use","tag-fedora-44-dnf5-cheatsheet","tag-fedora-dnf5-vs-dnf4-differences","tag-how-to-rollback-transaction-dnf5","tag-how-to-use-dnf5-on-fedora","tag-speed-up-dnf5-package-manager","tag-troubleshoot-dnf5-mirror-errors","tag-upgrade-fedora-using-dnf5"],"_links":{"self":[{"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/posts\/2207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/comments?post=2207"}],"version-history":[{"count":0,"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/posts\/2207\/revisions"}],"wp:attachment":[{"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/media?parent=2207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/categories?post=2207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emka.web.id\/en\/wp-json\/wp\/v2\/tags?post=2207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}