Ask Your Question

how to reinstall dnf completely? [closed]

asked 2017-12-27 00:11:34 -0600

Dixit gravatar image

how can i reinstall dnf? the /etc/dnf/dir has been removed accidentally and i am unable to install any packaged in my system. please suggest. thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by davidva
close date 2017-12-27 00:44:46.050475

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-27 00:47:47 -0600

abadrinath gravatar image

You can use RPM to do so. Delete the package and install it.

rpm -qa | grep dnf


rpm -e thatpackage.rpm

then finally to install it again

rpm -i thatpackage.rpm

That should completely reinstall the package, but I am not sure it will solve the problem of the missing directory. Please tell me how it goes.

edit flag offensive delete link more


Hello, Thanks for response. i don't have it dnf package to be reinstall (dnf.rpm). sharing the command output as below - [root@localhost ~]# rpm -qa | grep dnf python3-dnf-1.1.10-1.fc23.noarch python3-dnf-plugins-core-0.1.21-3.fc23.noarch dnf-yum-1.1.10-1.fc23.noarch dnf-conf-1.1.10-1.fc23.noarch dnf-plugins-core-0.1.21-3.fc23.noarch dnf-1.1.10-1.fc23.noarch

Dixit gravatar imageDixit ( 2017-12-27 01:58:51 -0600 )edit

Question Tools

1 follower


Asked: 2017-12-27 00:11:34 -0600

Seen: 1,111 times

Last updated: Dec 27 '17