Tuesday, April 7, 2009

YUM edit on Fedora

Fedora Linux has few package managers (rpm , yum)
now , we will use yum as package manager.
we assumed , you have been installed yum ; its OK
then we will use yum :
1. we must choice repository (mirrors) where there are many fedora package
2. login as root
3. edit yum
vim /etc/yum.repos.d/fedora-extras.repo
then modify
the '[extras] ' part to include your chosen mirrors:

[extras]
  name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/

baseurl=http://ftp.uni-bayreuth.de/linux/fedora/linux/extras/$releasever/$basearch/
ftp://ftp.tu-chemnitz.de/pub/linux/fedora-core-extras/$releasever/$basearch/
failovermethod=priority

mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
4. exit vim
5. then you can use yum
yum update
yum install package-name

No comments: