need help to setup Duke yum repository

View: New views
2 Messages — Rating Filter:   Alert me  

need help to setup Duke yum repository

by Yves Wang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have been reading the webpages on Linux@duke for info about yum
repository. But I couldn't got an idea how to import the repo into my
system. Could anyone give me some hints or help? Thank you.

Best,

--
Yi(Yves) Wang

Duke University

_______________________________________________
Dulug mailing list
Dulug@...
https://lists.dulug.duke.edu/mailman/listinfo/dulug

Parent Message unknown Re: need help to setup Duke yum repository

by dulug :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>I have been reading the webpages on Linux@duke for info about yum
>repository. But I couldn't got an idea how to import the repo into my
>system. Could anyone give me some hints or help? Thank you.

 

What distro/version are you trying to set up? If you are using one of the Linux@Duke distros (i.e. CentOS5 or FC6), it should already be set, so I'm assuming you are using a general release.

Side note: this will make it so you /only/ use the Duke mirror, even when you are off campus. Plus, in the unlikely event of the Duke mirror going down, you won't be able to download updates.

 

To just use the general release mirrors, you can change the baseurl in your /etc/yum.repos.d/<name>.repo files to reference archive.linux.duke.edu. The only two changes I've made are

1) copy the baseurl line, uncomment it, and change download.fedoraproject.org to archive.linux.duke.edu
2) comment out the mirrorlist

 

For example, here are my .repo files for Fedora 10 (removed the debuginfo and sources parts for brevity, plus I didn't include the rpmfusion or testing .repo files):

[mra13@michael-laptop ~]$ cat /etc/yum.repos.d/fedora.repo
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
baseurl=http://archive.linux.duke.edu/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

 

[mra13@michael-laptop ~]$ cat /etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
baseurl=http://archive.linux.duke.edu/pub/fedora/linux/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

Hope that helps!

 

Michael


_______________________________________________
Dulug mailing list
Dulug@...
https://lists.dulug.duke.edu/mailman/listinfo/dulug