Ask Your Question
0

how to reinstall dnf completely? [closed]

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

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
0

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

abadrinath gravatar image

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

rpm -qa | grep dnf

then

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

Comments

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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 1,286 times

Last updated: Dec 27 '17