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 -0500
Seen: 852 times
Last updated: Oct 12 '17
Subscription Management repositories ?
Fedora 28 remove nvidia drivers and use intel integrated graphics
Unable to download updates Fedora 29
Having Problems installing Wine
How can I get sha256 sum for F29 xfce spin?
loading firmware for gobi 3000
Fedora 26 - How to wipe free disk space and make it unrecoverable?
You should specify which Fedora release you are looking at.