blacklisting domains for yum?

Mika Suomalainen mkaysi at outlook.com
Sat Dec 29 10:58:27 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 29.12.2012 01:07, Joel Rees wrote:
> So I want to block yum from going to any domain in .cn .
> 
> Is there an easy way to do it, either in yum.conf or in
> yum.repos.d/* , short of disabling the metalinks and grabbing the
> list of mirrors from the mirrors page and deleting the Chinese
> servers?

I think that yum-plugin-fastestmirror can do this.
/etc/yum/pluginconf.d/fastestmirror.conf has commented line 11 which
says "#exclude=.gov, facebook" and I believe that it means that it
will not use mirrors that end with .gov or facebook.

yum install yum-plugin-fastestmirror

- -- 
Mika Suomalainen
http://mkaysi.github.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Homepage: http://mkaysi.github.com/
Comment: Public key: http://mkaysi.github.com/PGP/0x82A46728.txt
Comment: gpg --fetch-keys http://mkaysi.github.com/PGP/0x82A46728.txt
Comment: Fingerprint = 24BC 1573 B8EE D666 D10A  AA65 4DB5 3CFE 82A4 6728
Comment: I have personal problem with PGP/MIME...
Comment: ...so signature *IS* long. See http://git.io/6FLzWg
Comment: Please remove PGP lines in replies. http://git.io/nvHrDg
Comment: Charset of this message should be UTF-8.
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBCgAGBQJQ3szRAAoJEE21PP6CpGcoZNYP/2PAjKnSZ1uFNQo/VONtxtiO
4dTDiqUG/ugy/VkVsBuHWU0Z2tJS09EOKGgcyVF6raIr7j5DNuPW3gl6GvdsUQql
BXMu+ED8BoMUw5uAwzkTBrkMY1sux8N1Bb6mTzwNB9Qiju/q1IHuid5LQzHj0inM
16UQeN/D1DdhXebbR2gY8M7zcpR9nilUY6jGd7PmLshWNgYhFynCnM5Lwyi8rCCX
ExfKsdagtI286Yw8lx2wfN+VWTaV6HgcncYHDUYqxa+zeczsSa9O1NCHV2MXV7sj
GOCNv57Gf2a9q68/mR2Ac6PEv6d6w7KJqGgBtOK+5vpXTgKCxWPeukRSM2R4Q1Ah
KnU4MuGWEpOiDlXhYBC3mE/FYR4oULrmvHe+m8P+TJQsAUg34FfDYb3oVfnnGZpK
Vew97tD8nEKFvzLWCK1i0UbvCJKeuvU8cfi0XaX5oCBcRR2IzR872SwNyA/2/kA7
DoNcrjockEWGCXNJGrZlcy6ObpTOY/D1Z8hcMix6xktfWw6cSj8MDGmrZdRxBO/w
V3UYEVsP85DXKTxWr/sEY/Zzcit6362KuTriknPlEEPQNm0VBdcp/DnOhifap/ca
oDs5zTix4AkR1cqNqDF8mFQeZq96XgdoceXe21olc2FQCsnulzZivdwEOG/k2VTj
zEwF0GXk2Mr9Rz4C8BiY
=M1pR
-----END PGP SIGNATURE-----


More information about the users mailing list