How to re-enable repositories on Fedora Core 19 for YUM.

Posted: September 28, 2013. At: 2:04 PM. This was 4 years ago. Post ID: 6350

I had a problem on my Fedora Core 19 system where the Fedora & Livna repositories where not enabled. I found out that I had to edit the /etc/yum.repos.d/fedora.repo file and uncomment the baseurl string for the repo I wanted to use. And then change the enabled=0 value to enabled=1. Then I could use YUM straight away to install the packages I needed.

13:53:15 /etc/yum.repos.d homer@neo $ cat fedora.repo 
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

No comments have been made. Use this form to start the conversation :)

Leave a Reply