SCIENTIFIC-LINUX-USERS Archives

September 2013

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Konstantin Olchanski <[log in to unmask]>
Reply To:
Konstantin Olchanski <[log in to unmask]>
Date:
Tue, 3 Sep 2013 11:42:10 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
On Tue, Sep 03, 2013 at 11:47:25AM +0100, John Rowe wrote:
> Until now there seems to have been no _robust_ way of using a local
> repository for yum updates.

Say what?

$ more /etc/yum.repos.d/triumfcs-mirror-SL6.repo
...
[triumfcs-mirror-sl]
name=Scientific Linux $releasever - $basearch
baseurl=file:///triumfcs/mirror/SL/$releasever/$basearch/os
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
cost=100
...

Note the "cost=100" entry makes yum use this local repo instead of the remote stock SL repo.

> 1. Am I the only one finding using a local repository to be irksome, or
> is everybody else just smarter than I am?

Yes.

-- 
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada

ATOM RSS1 RSS2