52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 3287|敺: 0
銝銝銝駁 銝銝銝駁

[linux隞也 yum 貉牧

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-2 15:41:09 | 芰閰脖 撣 |摨閬 |梯璅∪
銝yum蝘駁方摰鋆
$ N) f6 l; x  [/ O' o1.亥岷臬行摰鋆yum
5 I9 Q0 ~- L+ j; `. N
1 d2 }: ~+ a' [7 o$ m1 |5 a
  1. [root@localhost ~]#  rpm -qa | grep yum2 u$ z& ^8 f8 e* e; {' Q/ j
  2. yum-metadata-parser-1.1.2-3.el5.centos
    , {' e. K$ O* F+ X% l  g
  3. yum-3.2.22-33.el5.centos
      G! V  P5 V7 |* L0 C
  4. yum-fastestmirror-1.1.16-14.el5.centos.12 d3 c, o4 A" w7 X$ [( `5 B' n
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
: {% b, M( }( s8 [% R* b0 |
2.蝘駁巾um (蝘駁斤孵拍車銝喳)
9 u2 g6 M3 {+ U! F, D1 D9 ]3 \7 h2.1肘um孵蝘駁5 {1 k; |$ @0 b! L" p
  1. [root@localhost ~]#  yum remove yum*
銴鋆賭誨蝣

8 t; l1 h( E# C* ?) W6 q
2.2禿pm -e孵蝘駁* O/ i% r5 ?9 t; _0 B! p. c
#亦鈭yum瑼獢閬蝘駁斤
0 \1 t  S( b' a6 t/ H
  1. [root@localhost ~]#  rpm -qa | grep yum4 ]( T# y  V( r/ b6 S4 `
  2. yum-metadata-parser-1.1.2-3.el5.centos& X/ b9 y3 C! f
  3. yum-3.2.22-33.el5.centos
    4 Q- c' v3 ?4 k( m' i* d- y0 h3 _
  4. yum-fastestmirror-1.1.16-14.el5.centos.12 u& B- t) X; G& R$ X
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
' a8 T2 Q+ ~6 a. k* \
#蝘駁巾um憒閬敹賜亦訾抒憿,臭蝙 --nodeps 賊
" ~: u4 Y; `) P/ p# J
  1. [root@localhost ~]# rpm -e yum-metadata-parser-1.1.2-3.el5.centos
    . F6 y- O6 ~+ [" J
  2. [root@localhost ~]# rpm -e yum-3.2.22-33.el5.centos' f, `# J& J/ l
  3. [root@localhost ~]# rpm -e yum-fastestmirror-1.1.16-14.el5.centos.19 F- C/ l' f% O0 O; ?
  4. [root@localhost ~]# rpm -e yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

( d; |0 [. j9 `5 O
鈭摰鋆yum6 l* g  z0 \* Y" Z5 G; s
1.摰鋆皞
, X. S  v& C+ G$ N' }  w1 W典鋆皞其遢臭誑唬誑銝蝬脣亦$ b' _; T7 |4 t/ |' }# }
隢靘芾閬曉啣鋆皞" a1 Z; v  h* T# L
i386 :
& ]8 b  T3 s0 ^( ~7 ~9 @1 q: s/ rhttp://mirrors.sohu.com/centos/5/os/i386/CentOS/
/ K" Z: y4 X0 l" d- K$ ~" ]http://mirror.centos.org/centos-5/5/os/i386/CentOS/1 [5 W+ _( ?% u) Y" |% O

0 u: l; c3 r, Qx86_64 : 4 o* }: _! K$ Y; D5 z& }
http://mirrors.sohu.com/centos/5/os/x86_64/CentOS/
& d, w/ R2 D% D4 o1 h$ }& d8 u! Thttp://mirror.centos.org/centos-5/5/os/x86_64/CentOS/, d5 |, Z: J+ w! O5 s

4 s2 O. v2 y' x' W8 l) O% ^7 o5 J( M) L) Y2 i6 m
肘um其遢銝餉臭蝙典唬誑銝4瑼8 v+ T! l& b# W8 G) o- B/ V
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm        " ^8 L# A% I+ J$ ]% E) J
yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
4 x& d) n$ P) ^% R9 E$ byum-3.2.22-37.el5.centos.noarch.rpm8 ^0 X6 F- Z) k- Q# x+ W
yum-updatesd-0.9-2.el5.noarch.rpm
( f4 X7 l7 |8 z. B* W" F# b2 [" P8 ]  r/ p
2摰鋆yum/ m% L+ X( X! G4 ~6 T3 v! R
i386# u, v0 E1 _7 K9 f. h
  1. [root@localhost ~]#  rpm -ivh  http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm" ]  x/ Y9 z0 V9 d' S/ T
  2. [root@localhost ~]# rpm -qa |grep yum
    1 m! M. P% [% e6 P
  3. yum-updatesd-0.9-2.el5
    ; l/ U6 e( o2 [; ^$ r6 [
  4. yum-metadata-parser-1.1.2-3.el5.centos- d5 |3 P+ A( m2 b* \: F4 i
  5. yum-fastestmirror-1.1.16-16.el5.centos
    6 l9 H" r% h, O/ \
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

- z% I" `6 q$ N1 n
x86_64
: o2 X: K' R, I3 B; R* G2 \7 g
  1. [root@localhost ~]#  rpm -ivh  http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm
    # v: Y7 k" X0 C& {+ m
  2. [root@localhost ~]# rpm -qa |grep yum
    / z' g7 ?+ h" a, g5 P
  3. yum-updatesd-0.9-2.el58 L3 g1 C' |$ n  N  J7 T
  4. yum-metadata-parser-1.1.2-3.el5.centos
    4 o9 c$ X, N0 P
  5. yum-fastestmirror-1.1.16-16.el5.centos: x" b0 z, \5 C. v0 H: K
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

% T* q1 b2 f, D2 S3 z' I& @
2.2湔唳撌脣鋆憟隞(靘鈭粹瘙臬行湔)
6 v8 \3 z1 w$ `$ G
  1. [root@localhost ~]#  yum -y update
銴鋆賭誨蝣
5 g4 P% M& k/ ^0 n
銝yum隞方牧0 I& g, j% a+ L; `8 w
其蝙肘um嚗撠銝頛梯正嚗摮曉/var/cache/yum桅銝; N/ B3 k' z1 S  D+ f. ^7 F; `
1.yum湔
9 \+ {& `/ o6 P% [yum check-update
+ k, n" c3 s! s1 o+ z#瑼X亥賣湔啁憟隞嗆鈭1 F4 g) w5 }7 {% A+ \" I" p

3 Z+ ?0 p7 R: P# ?8 S  `yum update
2 H0 O' h8 H2 \+ Q1 a. V#湔唳撌脣鋆憟隞塚亙罕pdate敺X乩憟隞嗅蝔梁閰勗舫撠閰脣隞嗆湔
, f( L% o0 \6 p; B" v& e( x憒yum update httpd
. t: y: K* e: [$ Q. D; a
* X, z. b0 O$ c9 D# syum upgrade  j. X* K  d/ ^  h1 b& F8 g
#質update撌桐憭嚗撌桀亙冽慶um upgrade銝鈭喳瘣格掠憟隞嗡銝韏瑟湔堆憭批雿輻典函砍蝝& J/ b, e* m" b, t
; u: |5 u( C5 W9 L& ~+ [
1.1摰鋆.蝘駁文隞, ]; t. H3 K( t0 I$ J' x0 @3 x
yum install : z+ s  o! Q1 z/ G; N
#摰鋆憟隞塚install敺X亥摰鋆憟隞嗅蝔梧憒yum install httpd亥賊銝韏瑕鋆閰勗臬冽敺銝*憒yum install httpd*
+ R7 o- g; T2 W9 f
: G* `) j( a# K, \+ a3 }4 s- f' N) C8 Myum --enablerepo=(Repository) install 摰鋆芯蝙冽憟隞嗅澈,憒憭,銋臭誑,亦/etc/yum.repos.d/鈭.repo
2 l; P  {7 u: d& u6 C8 X6 j8 N
憒yum --enablerepo remi,remi-php55 install php0 t2 g& Q; n. e  f0 ]5 s
) Y! G1 G/ y% g/ l) d
yum reinstall啣鋆憟隞
) J2 i, y$ X' |  C
7 R2 _* c( Z  W, m- Oyum remove
$ t7 d/ M6 k; J) _$ v( S#蝘駁文隞,券桀啁訾抒憿嚗臭誑yum deplist 曉箸訾憟隞,銝銝蝘駁支閬憟隞,頝喲閬靽憟隞,憒祉典隞(蝝憟隞嗅航賣典) - `6 U) Y6 `9 X

7 z7 D& I: Q/ x# V* C* n靘憒:) U7 I8 x- a! `/ l+ k: ?
yum deplist httpd | grep -v httpd | grep provider | awk '{print $2}' | sort -u" t; N9 A1 w2 N- m
remove敺舀亥蝘駁文隞嗅蝔梧憒yum remove httpd亥賊憟隞嗡銝韏瑞宏斤閰勗臬冽敺銝*憒yum remove httpd*7 V; R- |- e% H& M' H1 W/ V) F

' p4 `* d3 @2 P' v1 D) c: gyum clean
2 a& \+ h1 I& T& o#皜文鋆銝頛怠憟隞嗅憪瑼嚗憭批臬曉/var/cache/yum嚗撣豢銝yum clean packages砰um clean all嚗銝甈∪典芷扎# w7 x+ Q( L* Z
5 h: o0 w# _. Y$ C. ^
1.2皜怠7 o# U- w& Y$ T" \" ]
yum clean2 P# j: Z3 O' i3 c6 t7 J
#皜文鋆銝頛怠隞嗅憪瑼嚗憭批臬曉/var/cache/yum
* e& \2 u/ N$ s. |
% B' T  C: a2 y" [* x! f( X, I* Iyum clean packages& g2 f. [3 ?: J  `' N, x6 o0 F
#其皜斗怠(/var/cache/yum)桅銝憟隞
- o( u) |1 W* S0 J4 f! K& ?+ x( R* N2 i) ^4 C5 o' L+ w( m! ?
yum clean headers. g3 x8 M& |5 |' N+ V+ j6 v8 x/ ]. t
#其皜斗怠(/var/cache/yum)桅銝 headers
$ I+ x5 J; o7 w  j: e- Y0 L, N6 K
% n1 m: \6 t, a1 a7 i" [yum clean oldheaders- ]6 \0 |- A) W5 ^( o
#其皜斗怠(/var/cache/yum)桅銝 oldheaders ! W) i& Y/ a  C' F( I( }
* q# F3 `* |6 W! X9 L. K- \) N6 R
yum clearn all
+ r* D, E$ U) y. Q#湔交怠賭甈⊥扎
5 D" o- i( `' ~: \* y6 F- p; }) D8 ]5 n3 v# o+ z
1.3皜. U) x- m5 x! d2 q8 N
yum list3 D# n8 G5 {  K0 E; a
#箸Repository摨憟隞塚亙甸ist敺X亙隞嗅蝔梧臬桃典箄府憟隞嗚8 l7 p$ C, L1 ]
+ w. t! U7 _7 e% ^0 H0 w  i
yum list updates
3 a" N* k  ~# M- m* F2 C#箸臭誑湔啁憟隞' o; @; ]. r+ x% ]; G

1 `! O% a7 N' s& Uyum list installed/ j, H' {4 \  a6 g, @
#箸撌脩摰鋆憟隞! p9 r. K8 W' U( E% l

) d4 S/ F& }9 R6 syum list extra
0 }" N& {  P. e#箸撌脣鋆雿銝 yum Repository摨 抒憟隞
0 R) _, a! D: R, O2 v3 L5 M( w/ o! Z/ A1 C
1.4箏隞嗥賊鞈閮
/ I0 V4 e9 M4 [% I7 A4 Oyum info
( S, l, y! @+ s  i#箸憟隞嗥賊鞈閮嚗亙甬nfo敺乩憟隞嗅蝔梧臬桃典箄府憟隞嗥賊鞈閮
1 n8 I# l' v' `" U8 t4 x6 e9 d憒yum info httpd yum info httpd*嚗撌桀亙冽潭*隞去ttpd剔賢箔$ H, n; O# Q# M9 W* H5 V3 ]2 o
5 R7 P/ }+ V  M3 K- g
yum info updates; `( ]  J1 r, c! q5 ^9 t5 N
#箸臭誑湔啁憟隞嗉閮
! T! N3 q( }* M; O. v. F& G- ?9 b9 j* V: B
yum info installed; _5 ~( ^* O( v  ~! ]
#箸撌脣鋆憟隞嗉閮
' ^( z2 q7 s& P3 L0 }1 I4 O# f
) H6 e5 }. E9 R1 }# Ryum info extras
7 ]0 ]" X) q2 V* j! ?# L#箸撌脣鋆雿銝 Yum Repository摨 抒憟隞嗉閮5 A8 K/ h4 m4 f

8 T: S) n' {) O& `2 z  k. I
) Z9 `( T1 o5 T$ _7 @3 _1.5撠
4 Z9 X' C5 Q1 t) q* j% ?- myum search
" d2 ~4 G$ R+ d9 B5 h) m#撠賊憟隞塚憒yum search httpd嚗典銝剜曉唳閬憟隞嗚憿隡潮萄券1 ~$ \1 ^0 j8 q9 b
. [9 X  e- Q1 f' i4 O& a2 x  @
蝝憟隞嗡銝kernel" k. L* Z) x' s, T2 x$ {) y3 Z
憒唾肘um靘蝝憟隞塚雿銝喳逃ernel閰晞隢銝W瘜) g/ p* n* |$ y: m% s0 W
[root@localhost ~]# vim /etc/yum.conf
! t* J8 s  `' R% V2 A* a#沍main]嗡葉乩W銝
  E+ W( K' r6 `, Vexclude=kernel kernel-source
9 e  x, I1 T) G  @6 ?1 }
1 h' g  A/ b8 L嗉牧yum冽敺憭嚗雿臭砍虜函憭扳撠望臬鋆湔啣蝘駁扎拐蝑典唳亦撠勗臭誑鈭
; Z" }2 K" }- S: y( ]9 u6 P# n1 p0 B2 h9 v
6 S7 k" ~3 R& e
yum撣貉憿臭誑摰蝬脩閫蝑& M! q' V) j. E+ }, w
http://yum.baseurl.org/wiki/Faq
& N" A- q* V3 w& Q8 R' Y$ ]8 ^, ^- O! l

9 H! V+ x0 s/ u1 Q9 K: x4 o閮: 甇斤 http://ithelp.ithome.com.tw/question/10077313  ?3 U2 v5 E+ W- l; N
2 i  Z: w2 }3 f  w/ _/ p- @

/ B/ ?6 T3 d( ^+ b( I, W
9 n6 v9 m+ ^7 I0 |6 ?4 E; X% @/ }/ q8 r/ O* ~7 [
' S0 X; I3 j. h3 q% J- q# l2 L

% N# x8 G  f$ `7 i+ ?1 B$ k* }( Y/ @2 z  |3 I2 s" [

; a2 K  A; |4 ~3 W- N

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-18 09:53 , Processed in 0.072624 second(s), 20 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵