On 04/01/2011 03:49 PM, Orion Poplawski wrote:
> On 04/01/2011 07:06 AM, Urs Beyerle wrote:
>> On 04/01/2011 01:02 PM, Bluejay Adametz wrote:
>>>
>>> I keep these generally disabled and do a
>>>
>>> yum list --enablerepo=\*
>>
>> I would also strongly recommend to disable all external repos per
>> default!
>
> You can also specify only the packages you want in the repo file, e.g.:
>
> [rpmforge-extras]
> name = Red Hat Enterprise $releasever - RPMforge.net - dag
> baseurl=http://rpmforge.cora.nwra.com/redhat/el$releasever/en/$basearch/extras/
>
> enabled = 1
> protect = 0
> gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
> gpgcheck = 1
> includepkgs = clam* subversion* mod_dav_svn *fuse*
>
>
Another possibility is to use plugin yum-priorities
(yum-plugin-priorities.noarch), which basically does the same thing, but
enable you to set priorities of all repositories.
1: sl, sl-testing, sl-updates ..
2: epel ...
3: elrepo ...
4: ....
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
priority=2
BR
Vaclav M.