Sample dnf.conf and repos
Hello,
Where I can find an example of /etc/dnf/dnf.conf and repos file?
I've accidentally deleted mine and now can't install/update any packages.
Thanks
Hello,
Where I can find an example of /etc/dnf/dnf.conf and repos file?
I've accidentally deleted mine and now can't install/update any packages.
Thanks
Here is an example of my almost-default dnf.conf
file.
[main]
gpgcheck=1
installonly_limit=6
clean_requirements_on_remove=True
defaultyes=1
To reinstall the repository files in /etc/yum.repos.d, using root permissions or logged in as root, for Fedora 26 you should be able to do the following:
wget https://download-ib01.fedoraproject.org/pub/fedora/linux//releases/26/Everything/x86_64/os/Packages/f/fedora-release-26-1.noarch.rpm
rpm --force -Uvh fedora-release-26-1.noarch.rpm
You can find the rpm from here and select the one matching your fedora version. This one is for f26
Once downloaded you can install it using (as root)
rpm -v --reinstall fedora-repos-26-1.noarch.rpm
Or to unpack the rpm without installing
rpm2cpio fedora-repos-26-1.noarch.rpm | cpio -idmvu
You can also clone the git repository
git clone https://pagure.io/fedora-repos.git
Asked: 2017-10-12 01:59:46 -0600
Seen: 835 times
Last updated: Oct 12 '17
You should specify which Fedora release you are looking at.