Home > Command-Line > Adding Fedora Repository into Centos Repositories List

Adding Fedora Repository into Centos Repositories List

1. Create a repo file in the /etc/yum.repos.d.

# vi /etc/yum.repos.d/fedora.repo

—–snipped —-
[fedora]
name=Fedora Repositories
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/6/$basearch/
gpgcheck=1
—–snipped —-

But default we should put the line I commented out but because the $releasever is pointing to 5 as i am using CentOS 5, I replace it with six, which is I think the equivalent version of Fedora to CentOS 5.

2. Create cache for yum. I like to do this because it will make yum operation become faster. I even put it into /etc/cron.daily to make it update everyday.

# yum makecache

Categories: Command-Line
  1. John
    17/09/2008 at 3:15 am

    Thanks. That helped. Good Job, keep it coming!

  2. 24/04/2011 at 4:17 pm

    Thank you for the sensible critique. Me and my neighbor were just preparing to do some research on this. We got a grab a book from our local library but I think I learned more from this post. I am very glad to see such magnificent info being shared freely out there.

  3. 16/02/2013 at 4:49 pm

    the repo info is out of date:
    use “http://mirrors.yocum.org/fedora/releases/$version/Everything/$arch/os/” (i think its an official mirror)
    put your fedora version [currently 18] in for ‘$version’ and your processor architecture for ‘$arch’

  4. Joe
    04/03/2013 at 12:23 pm

    Thanks Knewby!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: