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.
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.
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?
OS: fedora 39
I run a sudo rm -R on /usr/lib/node* command, and now the DNF is not working and lib file is missing from usr folder, but folders lib64 and libexec are there. How to fix this?
I get this output everytime i try to use DNF
Traceback (most recent call last):
File "/usr/bin/dnf", line 61, in <module>
from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'
Edit: Solved, I used virtual machine of Fedora and transferred the deleted files from virtual machine to the Host machine, dnf and other are wroking as far as I can see ( I can run dnf update)
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.
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.
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)?