You are here: Home - Blog - Mengganti repository pada Fedora

Mengganti repository pada Fedora

Posted by on February 7th, 2015 with 0 Comments

Mengganti repository Fedora dengan menggunakan server Kambing UI

 

[fahrisalakbar@localhost ~]$ su
Password:
[root@localhost fahrisalakbar]#

 

[root@localhost fahrisalakbar]# cp /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.old

[root@localhost fahrisalakbar]# cp /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.old

 

Kemudian, edit seluruh isi file dari fedora.repo dan fedora-updates.repo:

[root@localhost fahrisalakbar]# gedit /etc/yum.repos.d/fedora.repo

Ganti dengan :

[fedora]
name=Fedora $releasever – $basearch
failovermethod=priority
baseurl=http://kambing.ui.ac.id/fedora/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://kambing.ui.ac.id/fedora/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=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

 

[root@localhost fahrisalakbar]# gedit /etc/yum.repos.d/fedora-updates.repo

Ganti dengan :

[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=http://kambing.ui.ac.id/fedora/updates/$releasever/$basearch/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]
name=Fedora $releasever – $basearch – Updates – Debug
failovermethod=priority
baseurl=http://kambing.ui.ac.id/fedora/updates/$releasever/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever – Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

 

Enjoy :D

 

 

 

 

Leave a Reply


5 − = three