Fedora Silverblue uses rpm-ostree. RPMFusion has pages specific to Silverblue, I suggest you follow those Edit: here’s a link Answer from Deleted User on reddit.com
🌐
Reddit
reddit.com › r/fedora › sudo: dnf: command not found ?
r/Fedora on Reddit: sudo: dnf: command not found ?
April 12, 2023 -

I can't seem to run videos in Firefox in sites like Reddit (they seem to run OK in Chrome) so I read about enabling RPM Fusion repositories however when I try running the dnf command I get sudo: dnf: command not found:

[tom@fedora ~]$ sudo dnf install \
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
[sudo] password for tom: 
sudo: dnf: command not found
[tom@fedora ~]$ 

Why would the videos seem to run in Chrome but not Firefox?

Is dnf something else I have to enable?

edit: Fedora 37 Silverblue.

Many thanks for any hints.

🌐
Reddit
reddit.com › r/fedora › how to resolve “dnf: command not found…” problem on fedora 39
r/Fedora on Reddit: How to resolve “dnf: command not found…” problem on fedora 39
March 11, 2024 -

I was trying to remove python environment and I think I accidentally removed the one comes default with fedora and makes dnf command not available.

I did(not consecutively but I think those three commands are the relevant ones):

\``bash`

sudo rm /bin/python

sudo rm /usr/bin/python

sudo rm /bin/python3 /bin/python3.12 /bin/python-argcomplete-check-easy-install-script /bin/python-argcomplete-tcsh

\```

Then I found that:

\``bash`

n349@fedora:~/Downloads$ sudo dnf upgrade

Place your right index finger on the fingerprint reader

^C[sudo] password for n349:

sudo: dnf: command not found

\```

I tried to reinstall dnf, but it seems that dnf-4.19.0-1 is currently still installed on my machine and i cannot do it again.

\``bash`

~/Downloads$ dnf --version

bash: dnf: command not found...

Install package 'dnf' to provide command 'dnf'? [N/y] y

* Waiting in queue...

* Loading list of packages.... Failed to install packages: dnf-4.19.0-1.fc39.noarch is already installed

\```

\``bash`

n349@fedora:~/Downloads$ ls -l /usr/bin/dnf

lrwxrwxrwx. 1 root root 19 Mar 11 01:37 /usr/bin/dnf -> /usr/bin/dnf-4.19.0

\```

I am using fedora 39 upgraded using dnf from fedora 38 preinstalled on a thinkpad x1 carbon.

\```

n349@fedora:~/Downloads$ uname -a

Linux fedora 6.7.7-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar 1 16:53:59 UTC 2024 x86_64 GNU/Linux

\```

I searched online and didn't found a solution to this problem and hope someone could help me with it.

🌐
Reddit
reddit.com › r/fedora › [deleted by user]
[deleted by user] : r/Fedora
May 24, 2024 - My friend helped me with the initial ... called fedora 💀 Lesson learned lol ... Yeah, in that case you either install packages and applications via Flatpaks or rpm-ostree, which has similar commands to dnf ... Just tried rpm-ostree and it worked, thanks for the help! ... Control+d closes the console you are in, any console. Bash, psql, python, all of them. Control+z moves the console or command you are running to the background, it does not close ...
🌐
Reddit
reddit.com › r/fedora › fedora 40 sway - dnf not found
r/Fedora on Reddit: Fedora 40 Sway - dnf not found
October 19, 2024 -

Hi,

I try actually fedora on virtual machine. I have install fedora sway, but when I want update with root user, shell say dnf : commend not found

Are there another specific command for update Fedora with sway ?

I have same message with yum

EDIT : Finaly, as it is a new installation, I reinstalled with the same image and it works again.

I did not understand why the first installation did not work.

🌐
Reddit
reddit.com › r/fedora › dnf command not found...
r/Fedora on Reddit: dnf command not found...
July 9, 2018 -

noob here, having a go at fedora on VM...i want to install tweak tool for custominization and it said dnf: command not found after i enter sudo dnf install gnome-tweak-tool in the terminal.

KDE Spin or any other favors Spin is desktop environment installed through terminal? how you install it?

🌐
Reddit
reddit.com › r/fedora › oops: removed dnf. how to continue from here?
r/Fedora on Reddit: Oops: removed DNF. How to continue from here?
September 2, 2023 -
dnf: command not found

Seems I managed to remove dnf itself while uninstalling the KDE Plasma Workspaces. Any suggestions to bring DNF back?

I had installed Fedora 37 KDE Plasma spin. As I turned the laptop into a home server, DNF SWAPped it to the server edition. Then I thought I might as well remove the DE. The plan was to then upgrade to 38.

$ sudo dnf group remove "KDE Plasma Workspaces" --exclude=sudo
No match for group package "sudo"
Dependencies resolved.
...
Removed:
  dnf-4.16.2-1.fc37.noarch
...
Complete!

Now without DNF it won't be of much use. Is there an easy way to install DNF without DNF?

Or alternatively: is there a way to upgrade to Fedora 38 from the ISO installation media (rather than performing a clean install)?

🌐
Reddit
reddit.com › r/fedora › dnf not showing up in software center
r/Fedora on Reddit: DNF not showing up in software center
May 20, 2022 -

I'm not sure if I'm just dumb or what but I'm running Fedora 36 workstation and the gnome software center is only showing me flatpaks. I can install RPM packages just fine from the command line, but dnf/rpm is completely missing from the software center. Any idea why this would be happening?

Edit: Turns out I was kind of dumb, after running dnf update in terminal and rebooting they all showed up. No updates had been applied except for flatpak updates my entire time with Fedora 36 so far since software center didn't see them and I hadn't thought to try it yet.

Find elsewhere
🌐
Reddit
reddit.com › r/fedora › dnf not finding updates fedora 38
r/Fedora on Reddit: dnf not finding updates Fedora 38
June 6, 2024 -

I noticed that I was not getting any package updates from dnf for the past few days, maybe a week, and I am concerned something is wrong with my system. Other fedora users I talked to said they are getting recent daily updates. Any use of sudo dnf upgrade

Just gives

Last metadata expiration check: 0:01:18 ago on Thu 06 Jun 2024 11:14:32 AM.
Dependencies resolved. 
Nothing to do.
Complete!

I have tried

sudo dnf upgrade --refresh
sudo dnf upgrade clean all

and they don't give an error, but still my system does not show any packages to update.

in the dnf.conf I set useFastestMirror back to False, thinking that was the cause, but still I cannot get package updates.

running

rpm -qa --last | head

shows that my last updated package was May 27, but there was an update to librewolf on June 1st.

I would appreciate any help on this.

edit: formatting

edit 2: Solved. Updated to Fedora 39 without issue. I never realized each version was only supported for a short time

🌐
Fedora Discussion
discussion.fedoraproject.org › ask fedora
Dnf: command not found - Fedora Discussion
December 12, 2024 - Hi, i just migrated to fedora 41 from windows. the problem is i am used to debian os’s but this one has got me. after installation of Fedora 41 ‘’’ mrvh@fedora:~$ cat /etc/fedora-release Fedora release 41 (Forty One) ‘’’ " mrvh@fedora:~$ sudo dnf update sudo: dnf: command not ...
🌐
Reddit
reddit.com › r/fedora › dnf not working, please help
r/Fedora on Reddit: DNF not working, please help
January 12, 2025 -

whenever I try to use dnf, for example

sudo dnf install python3

it says

Traceback (most recent call last):
  File "/usr/bin/dnf", line 56, in <module>
    from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'

Ive tried to look at multiple posts on the same but I wasnt able to solve

🌐
Reddit
reddit.com › r/fedora › my dnf is broken
r/Fedora on Reddit: My DNF is broken
April 4, 2023 -

Today I downgrade my python version from 3.10.0 to 3.9.16 and I tried using dnf and got this error

Traceback (most recent call last):
  File "/usr/bin/dnf", line 61, in <module>
    from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'

Then I tried doing

pip uninstall dnf

And I now always got this error

/usr/bin/env: ā: No such file or directory

Could someone help me ?

🌐
Reddit
reddit.com › r/fedora › what's the one dnf command or fedora trick you wish you'd known from day one?
r/Fedora on Reddit: What's the one DNF command or Fedora trick you wish you'd known from day one?
February 25, 2026 -

I'll start: dnf history undo last Found out about it after spending 45 minutes manually trying to roll back a bad update. One command, problem solved. It's been in DNF forever and I somehow missed it for years. Also dnf leaves - shows packages nothing else depends on. Perfect for cleaning up forgotten installs

What's yours?

Top answer
1 of 12
34
Dnf provides
2 of 12
9
dnf changelog good for reading changelogs without having to hunt them down somewhere on the web dnf history list dnf history info both commands are very good to check what exactly was updated / replaced recently, but also quiet a while ago, especially if you use some kind of --assumeyes / -y parameter when updating. Even more so, if you then closed your terminal or rebooted your system, so the output is gone. Me, for example, uses a oneliner to update flatpaks and then do the offline-updates for packages using dnf. I don't see a big problem in using --assumeyes, because even if I were to use Discover (KDE in my case) I'd pretty much still click on "update" which would update all packages without exceptions. Afterwards, especially when there were a lot of packages, I like to look at the history and changelogs if something interesting catches my eye. Be aware that this one immediately reboots the system IF there were any updates found by dnf: sudo -v && (flatpak update --assumeyes ; sudo dnf upgrade --offline --assumeyes --refresh && sudo dnf --assumeyes offline reboot) As I link both dnf commands by && the second one only runs if the first one exits without errors. So if there were e.g. an error while downloading a package and thus the updates wouldn't fully work, the second command won't run. Same with the first sudo -v, if you cancel out of the password prompt or enter the wrong one, the rest of the command won't be executed, that's why I first validate sudo and then have all other commands in brackets, so they don't get executed as a whole if sudo fails.
🌐
Reddit
reddit.com › r/fedora › dnf problem
r/Fedora on Reddit: DNF problem
March 10, 2025 -

Hi guys,
I need some help with my Fedora. I am very new to this and I was downgrading my python to 3.11. from newer version and something has changed with my Fedora. When I type dnf --version it seems that I dont have any package related to that.

It says this:
Traceback (most recent call last):
 File "/usr/bin/dnf", line 56, in <module>
   from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'

Can someone please help me.
Appreciate it! Thanks :)

🌐
Reddit
reddit.com › r/linuxquestions › dnf not working in fedora 40
r/linuxquestions on Reddit: dnf not working in fedora 40
April 30, 2024 -

I just installed fedora 40 and try to update but its look like there are no internet

abdalrhman@fedora:~$ ping google.com

PING google.com (142.250.200.238) 56(84) bytes of data.

64 bytes from mrs08s18-in-f14.1e100.net (142.250.200.238): icmp_seq=1 ttl=110 time=269 ms

64 bytes from mrs08s18-in-f14.1e100.net (142.250.200.238): icmp_seq=2 ttl=110 time=67.1 ms

64 bytes from mrs08s18-in-f14.1e100.net (142.250.200.238): icmp_seq=3 ttl=110 time=123 ms

^C

--- google.com ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2002ms

rtt min/avg/max/mdev = 67.092/152.951/268.549/84.890 ms

abdalrhman@fedora:~$ sudo dnf update

[sudo] password for abdalrhman:

Fedora 40 - x86_64 0.0 B/s | 0 B 02:52

🌐
Fedora Discussion
discussion.fedoraproject.org › ask fedora
How to resolve "dnf: command not found..." problem on fedora 39 - Fedora Discussion
March 11, 2024 - I was trying to remove python environment and I think I accidentally removed the one comes default with fedora and makes dnf command not available. I did(not consecutively but I think those three commands are the relevant ones): sudo rm /bin/python sudo rm /usr/bin/python sudo rm /bin/python3 /bin/python3.12 /bin/python-argcomplete-check-easy-install-script /bin/python-argcomplete-tcsh Then I found that: n349@fedora:~/Downloads$ sudo dnf upgrade Place your right index finger on the fingerpr...
🌐
Fedora Discussion
discussion.fedoraproject.org › ask fedora
Dnf missing in workstation 39.1.5 - Fedora Discussion
December 6, 2023 - I have just installed pure fedora workstation 39.1.5 Silverblue and found out some essentials are missing. Maybe I am missing something but I haven’t yet read in docs about this change, if there is such. [chata@fedora ~]$ sudo dnf sudo: dnf: command not found [chata@fedora ~]$ sudo rpm -qa | grep d…
🌐
Reddit
reddit.com › r/fedora › sudo dnf install dnf
r/Fedora on Reddit: sudo dnf install dnf
December 23, 2022 - A community for users, developers and people interested in Fedora Linux, and news and information about it. ... DNF 5 is soooo much better.