|
|
# cat Centos-7.repo
8 d& \4 G6 C9 I0 j5 b) j* x: u# CentOS-Base.repo* [' @2 s' r2 V7 Y
#
0 u8 |5 I5 g j ]5 {9 |7 K# The mirror system uses the connecting IP address of the client and the
1 ], X- r( a5 k' Q* z0 Z e0 `# update status of each mirror to pick mirrors that are updated to and
# w5 ], \1 P/ I9 c5 D; }# geographically close to the client. You should use this for CentOS updates3 M) S. k1 Z1 _2 `. t. D$ F1 N) h
# unless you are manually picking other mirrors.7 _/ S% e( ?0 }5 }1 O% P
#
; _2 w z0 d/ A$ t# If the mirrorlist= does not work for you, as a fall back you can try the
! M6 R8 d! V8 S# remarked out baseurl= line instead.# i7 R7 R' P2 J7 _0 F3 S
#
[; [3 z" o4 e" u3 g s7 d! G Z#2 y0 ]$ W! z2 u) E
( e/ N4 D; W+ |5 }1 X8 ^; a[base]
5 o: F% y. Y# ename=CentOS-$releasever - Base - mirrors.aliyun.com! t( B, M$ A x3 K- P+ G, q+ h
failovermethod=priority
- d( B- b: Q$ s9 x7 fbaseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/3 q+ m. i/ T* ]* `0 I6 Y; S3 D% s4 F/ I/ r
http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/2 @4 Z# m+ T0 I) Y
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
. y4 N% g% B: M( P6 l% S- ~gpgcheck=1, G( a; z# d; b
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7/ U. R2 O: S! i
4 U5 @4 a) @% h" v#released updates 0 P E9 ?7 k6 a# a7 Z! d
[updates]1 x: r: T5 M5 t' C
name=CentOS-$releasever - Updates - mirrors.aliyun.com
$ i' W6 W% V" J. l, V! m/ pfailovermethod=priority7 Y0 d% N6 f+ Y w; e' C# d
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/
- L5 Y9 _7 g) m1 B. m4 X http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
9 \" M: ]" ]! v5 C. ~# ]# ~0 ]#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
. V7 I; y! l3 A# p2 s- ?5 ngpgcheck=1
& R/ U3 R0 p+ @0 `gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7* Q% _% F3 i6 U( b
+ a. @. _1 q4 s& v, z* g#additional packages that may be useful: X, K! z% r, L6 {1 g, Q
[extras]
% d+ T$ B: ~5 q* G5 [name=CentOS-$releasever - Extras - mirrors.aliyun.com
: a8 ?0 C8 U* V1 qfailovermethod=priority3 j3 N. B, q4 C7 c9 D. x& W
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/9 ~. n! r( R! x/ A, e& G
http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
. k! r0 V! m! r2 a4 q1 T#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras( d5 [2 u8 d. M& t0 x/ W; [, B
gpgcheck=1; O/ I' d# V6 Y- }9 Z0 n8 T( J
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7" X3 O$ T% v; B9 h) a
8 A8 C9 w/ g4 t9 S! ?
#additional packages that extend functionality of existing packages* K, [0 y; Z) d* u4 m
[centosplus]
( R! q4 ~3 s2 Z% ^5 Gname=CentOS-$releasever - Plus - mirrors.aliyun.com
/ i. W! Q+ {5 jfailovermethod=priority- H" y) m, u5 c& h
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/
6 o% k$ r' L8 h! i http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/
. f! m) x, ~9 F0 B#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
4 h7 u4 J6 ` c1 q' ^; Vgpgcheck=1
3 o4 m+ `/ {2 t+ g, N& aenabled=0
$ Y; E4 g3 J% `gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-72 N, g+ ~& v+ }# j. n. L
$ s& h9 ^' f# r5 K# g' t! C#contrib - packages by Centos Users) T3 k) q0 N. p6 K
[contrib]
% Q m$ \$ t) ]6 a" D+ `) M9 d5 z1 tname=CentOS-$releasever - Contrib - mirrors.aliyun.com
0 i- H% X: |; z4 Hfailovermethod=priority5 }: y( G+ `( L% M+ C& W
baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/5 Y: D/ A1 N- ~; r4 A- a9 y
http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/
3 N- _* Z" w; \' }#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
B# Z! Z( J i0 Ogpgcheck=1
- k1 ]: `5 V$ x4 V% {enabled=0( b8 k. N; T r4 n! K7 Q
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
) C$ |, _' v1 b& d6 E) F$ L |
|