52AV璈A|52AV.ONE

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

[linux隞也 yum 貉牧

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-2 15:41:09 | 芰閰脖 撣 |甇摨閬 |梯璅∪
銝yum蝘駁方摰鋆
. @9 o3 @) N+ k$ ?# i+ t3 K9 e1.亥岷臬行摰鋆yum
) g' ~3 l, C& X. a! B$ ~1 e0 C
7 x/ |( |" {9 J1 S
  1. [root@localhost ~]#  rpm -qa | grep yum4 W/ P+ O( g. F" X/ P- w# Z
  2. yum-metadata-parser-1.1.2-3.el5.centos0 q% J6 C( N* \. W' k$ c
  3. yum-3.2.22-33.el5.centos
    1 t! X! J0 S9 ?
  4. yum-fastestmirror-1.1.16-14.el5.centos.1
    ! U  D$ P: j3 n% t% Z  F2 p4 x9 I- Q
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

0 t4 l. w6 z/ D6 j
2.蝘駁巾um (蝘駁斤孵拍車銝喳)
; W  ?* m; T& [7 S3 C. }2.1肘um孵蝘駁. I  x! b* [. }  z- S3 c
  1. [root@localhost ~]#  yum remove yum*
銴鋆賭誨蝣
( Z# Q- g8 I, f8 y: G
2.2禿pm -e孵蝘駁% \/ e' g$ m% p
#亦鈭yum瑼獢閬蝘駁斤
8 k# T/ F, F( V5 T# b; _) Q7 p
  1. [root@localhost ~]#  rpm -qa | grep yum+ K' }, J& B0 k! e8 N) I6 F
  2. yum-metadata-parser-1.1.2-3.el5.centos
    ! M3 e" X- c# X7 w
  3. yum-3.2.22-33.el5.centos
    $ p( Y4 M$ {& V  r  h. [
  4. yum-fastestmirror-1.1.16-14.el5.centos.1
    5 ^# K& h8 b; y( P) X( w
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
6 n9 v6 C# ^% V; B
#蝘駁巾um憒閬敹賜亦訾抒憿,臭蝙 --nodeps 賊
% U1 J3 p- ~, y) c5 |# M, V* \
  1. [root@localhost ~]# rpm -e yum-metadata-parser-1.1.2-3.el5.centos
    5 n8 f! T# Q& d- x* Q: Z7 H  ?/ `2 O
  2. [root@localhost ~]# rpm -e yum-3.2.22-33.el5.centos( h, U6 \5 D8 `7 o1 Q# T+ y" Z$ \3 [
  3. [root@localhost ~]# rpm -e yum-fastestmirror-1.1.16-14.el5.centos.1/ o# V: d8 q2 [7 {! p% J3 x
  4. [root@localhost ~]# rpm -e yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
4 z5 I( j1 `) B
鈭摰鋆yum4 x  m# q( N3 _' Z5 [( |& _. K
1.摰鋆皞
5 c9 X5 G5 W5 N4 B- F. D典鋆皞其遢臭誑唬誑銝蝬脣亦
7 ~& ^/ O9 l+ y* d9 R隢靘芾閬曉啣鋆皞
5 s  F, n; t) G  Yi386 :
& o3 S9 `6 J% ~http://mirrors.sohu.com/centos/5/os/i386/CentOS/. a% S1 C, U. K) h, C
http://mirror.centos.org/centos-5/5/os/i386/CentOS/2 h9 t% c+ e8 B# S. d( ?
: o# M7 q% M2 f7 K$ c2 c
x86_64 :
$ x+ R% U# }+ g. U: A: l8 Q3 Jhttp://mirrors.sohu.com/centos/5/os/x86_64/CentOS/% o* y$ _: ^! ]. w
http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/8 d7 s" S3 J) n& i" v8 \, L; B" p# G
8 `2 f( _1 L1 x. H6 F  |4 z  |5 c: h

. t2 B! [8 B; O* _肘um其遢銝餉臭蝙典唬誑銝4瑼
/ o3 \5 ]  ~4 Q4 q" h7 Q0 yyum-metadata-parser-1.1.2-3.el5.centos.i386.rpm        ' v& w9 a: m+ Q4 _# b6 P7 j+ m
yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
/ O' `9 x/ i/ `; m0 f' n. wyum-3.2.22-37.el5.centos.noarch.rpm: @  h4 L/ K6 `
yum-updatesd-0.9-2.el5.noarch.rpm
/ P) x8 t: V. B3 b0 d# J) R+ [- k9 u" \) A
2摰鋆yum
' y) v! [1 Y! x. q/ \7 `i386
, i% X: [1 P$ G+ F* o
  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) Y& B1 v8 X% V! `
  2. [root@localhost ~]# rpm -qa |grep yum
    " b; H: C5 Y0 ~# V- ]4 ~% {
  3. yum-updatesd-0.9-2.el5
    $ R, Y0 Z; ], @7 G. q  j) b& o
  4. yum-metadata-parser-1.1.2-3.el5.centos
    3 W( m- N7 a" P2 m& b- v+ P
  5. yum-fastestmirror-1.1.16-16.el5.centos4 b9 a- r9 N1 r
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣
% P( _$ z, F6 `# ?! p$ |7 X7 X7 i
x86_649 r/ ~# v0 J+ 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 8 }6 e/ A' v2 r: }8 H
  2. [root@localhost ~]# rpm -qa |grep yum
    7 }  j* @+ X9 V' ?1 I5 ]
  3. yum-updatesd-0.9-2.el5
    $ b6 h/ P  N$ n0 C" Y1 C
  4. yum-metadata-parser-1.1.2-3.el5.centos
    7 X; l/ u/ \$ Q* E
  5. yum-fastestmirror-1.1.16-16.el5.centos/ M  A$ t% p. X) Y
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

! @& Z. M2 K% A6 n4 q
2.2湔唳撌脣鋆憟隞(靘鈭粹瘙臬行湔)
4 Z# ^* Y! o( F4 \: R8 P
  1. [root@localhost ~]#  yum -y update
銴鋆賭誨蝣

7 D, `7 t4 u# W0 r6 A1 r; T0 @
銝yum隞方牧
5 R6 |& Z1 G% E1 b8 N( d7 D其蝙肘um嚗撠銝頛梯正嚗摮曉/var/cache/yum桅銝( ~3 _  P2 U9 p6 c/ ^4 q% M
1.yum湔+ n- _- e+ H0 D
yum check-update
1 x# E" y( u  F- U$ U- [#瑼X亥賣湔啁憟隞嗆鈭
2 D) ]1 H+ p+ e. }& Y' [6 U& F0 y* ~, a
yum update
) q- U+ Q5 O# p& i$ N+ H. \#湔唳撌脣鋆憟隞塚亙罕pdate敺X乩憟隞嗅蝔梁閰勗舫撠閰脣隞嗆湔: x% I2 n- A4 c9 ^1 U
憒yum update httpd
! T- R+ T0 K) C+ O$ P  g7 }( M) M3 A9 C6 T7 b3 Q/ o9 B
yum upgrade- j, E9 t( h  q5 \
#質update撌桐憭嚗撌桀亙冽慶um upgrade銝鈭喳瘣格掠憟隞嗡銝韏瑟湔堆憭批雿輻典函砍蝝
4 ^# U2 q9 l- B% {  z. ]3 L. _$ z+ a, }6 b. C
1.1摰鋆.蝘駁文隞
2 [1 e5 a* ^# }  d, C2 ?yum install : n+ O/ k- F7 o! I
#摰鋆憟隞塚install敺X亥摰鋆憟隞嗅蝔梧憒yum install httpd亥賊銝韏瑕鋆閰勗臬冽敺銝*憒yum install httpd*
  I. t$ _, g- p  F6 j6 P2 Q6 L0 M: `2 w. a# \: J& o
yum --enablerepo=(Repository) install 摰鋆芯蝙冽憟隞嗅澈,憒憭,銋臭誑,亦/etc/yum.repos.d/鈭.repo
( ^) w9 `/ g' C( m2 G
憒yum --enablerepo remi,remi-php55 install php2 Q: }  G$ c  z

' e9 A" Z! X9 J
yum reinstall啣鋆憟隞
5 k/ ~- O$ ?3 i' ^2 n1 w4 W6 ]( R* }; ~! a
yum remove# V& Q' p% a4 z. ?' I5 J9 O
#蝘駁文隞,券桀啁訾抒憿嚗臭誑yum deplist 曉箸訾憟隞,銝銝蝘駁支閬憟隞,頝喲閬靽憟隞,憒祉典隞(蝝憟隞嗅航賣典)
  L# {( P% x' a/ c. `( t

5 g  r. U- J% |0 f靘憒:1 `: t: _% j5 q) U- H5 u
yum deplist httpd | grep -v httpd | grep provider | awk '{print $2}' | sort -u
0 d5 t/ C, a* M! c) B8 k8 N+ e- E
remove敺舀亥蝘駁文隞嗅蝔梧憒yum remove httpd亥賊憟隞嗡銝韏瑞宏斤閰勗臬冽敺銝*憒yum remove httpd*
6 Z$ \& O; F% G0 V0 s( y" m: s  l# G2 H6 G
yum clean) W: o0 X& I  l6 n/ ^( d4 u
#皜文鋆銝頛怠憟隞嗅憪瑼嚗憭批臬曉/var/cache/yum嚗撣豢銝yum clean packages砰um clean all嚗銝甈∪典芷扎# u: z2 T+ v2 C/ R6 G7 O

$ W$ S1 p6 c+ b2 E) A1.2皜怠9 h( C/ r! ~( ?2 M) ?4 z& m( B, Z
yum clean4 I/ o1 E7 j. m: ^' y' h2 F" a3 ?
#皜文鋆銝頛怠隞嗅憪瑼嚗憭批臬曉/var/cache/yum  n+ H' T  y: o( v0 ^
" i0 R3 o" P1 A! o& |- n
yum clean packages
2 i* b- `5 M3 N; {- {9 X' e- B#其皜斗怠(/var/cache/yum)桅銝憟隞. X! y- x: C7 r$ L  L$ G+ U  S7 K$ A

8 ?, F  p* v9 |/ G4 b$ b1 Z$ uyum clean headers* o* D1 D( n' |' K! t2 q6 e
#其皜斗怠(/var/cache/yum)桅銝 headers
7 s+ P- S* i% ?$ C& I% F& d' T. g; ?: @5 p  ?' }/ r0 p
yum clean oldheaders- r4 O" O% O. X5 T8 a( q
#其皜斗怠(/var/cache/yum)桅銝 oldheaders . e$ r$ J1 Y" Q- J8 E
; p2 j/ x/ O' A- @
yum clearn all
; i, \) |- j1 k: N; y; z% T+ p#湔交怠賭甈⊥扎; [% e" u% ~2 Z
8 d  @. Z( B7 l6 Q" O' A5 c+ E
1.3皜
- q, V( a1 j+ }6 ^yum list- m" f( `, N* ~( c# k
#箸Repository摨憟隞塚亙甸ist敺X亙隞嗅蝔梧臬桃典箄府憟隞嗚/ G5 p2 h+ }5 a0 n4 c! d$ D! f
6 V" A* q3 F3 g- ]1 s7 W
yum list updates
, e6 f) z' ~' l#箸臭誑湔啁憟隞
9 r$ E3 S) n, c8 H5 l2 h2 G- x" N
5 {1 `6 P. }- v2 Cyum list installed9 J; l% T, H* Q; X6 k) K5 X6 [' W5 m  {
#箸撌脩摰鋆憟隞8 `/ s1 I# M; N" g* k7 y, X9 |( m$ v
1 @, j- D+ o2 S! `
yum list extra" g- p5 D  @; E! y& j& d
#箸撌脣鋆雿銝 yum Repository摨 抒憟隞% p/ V8 R9 A  p% q

: M9 y( \7 ~8 `1.4箏隞嗥賊鞈閮8 u' u, u2 n- l; u9 v
yum info9 L  _; h1 @5 h: z
#箸憟隞嗥賊鞈閮嚗亙甬nfo敺乩憟隞嗅蝔梧臬桃典箄府憟隞嗥賊鞈閮. d$ B( _) x4 U! Q
憒yum info httpd yum info httpd*嚗撌桀亙冽潭*隞去ttpd剔賢箔
" Q4 F& L3 F2 b) d3 j0 \0 Q. O, h/ [- F$ `7 j. [
yum info updates
3 g: z4 o) t- f#箸臭誑湔啁憟隞嗉閮
# L& _4 @" T. q, B& C/ f4 q9 N! L# s# }% K. u
yum info installed
. l3 n0 x5 }' D. A; F  R$ f#箸撌脣鋆憟隞嗉閮. y9 z- H5 |1 L" \0 M$ Y6 E
3 k) Y0 J9 ?; ^8 z) |
yum info extras
  j0 u  a' I' }" Z" U* t. F% P#箸撌脣鋆雿銝 Yum Repository摨 抒憟隞嗉閮
2 o. {* }3 w& i+ J- }7 o1 U0 {( O9 Y# O3 E/ q8 g2 Z
+ I) `* d; [: I& Y' K& `. L
1.5撠: R) x: y) q4 ~6 U
yum search/ O1 ?' d) u' H: r9 [  ]
#撠賊憟隞塚憒yum search httpd嚗典銝剜曉唳閬憟隞嗚憿隡潮萄券5 q8 X$ y7 F8 @5 ?
+ q' ], M% G, r. T' Y
蝝憟隞嗡銝kernel
/ C+ m* F0 l* W9 {5 Q4 ^3 p憒唾肘um靘蝝憟隞塚雿銝喳逃ernel閰晞隢銝W瘜
! y- x. i' ^' Z, C0 g7 \1 O[root@localhost ~]# vim /etc/yum.conf) o6 S6 y! m/ h
#沍main]嗡葉乩W銝1 G1 M0 o! p5 H+ O
exclude=kernel kernel-source  A4 h4 @( I( y' A* [0 d/ f
; \9 ^# L1 N' E
嗉牧yum冽敺憭嚗雿臭砍虜函憭扳撠望臬鋆湔啣蝘駁扎拐蝑典唳亦撠勗臭誑鈭
5 Q  ]/ L0 f* B$ v! W% u  S4 Y: n  ^: c

8 h% Q' W' S! U6 }3 w% |8 K2 yyum撣貉憿臭誑摰蝬脩閫蝑. W" Z2 @6 `' J! z. I, d
http://yum.baseurl.org/wiki/Faq
- ~- G  m3 P) q; b- z; I0 t/ @( Z. B2 A9 e! [( V/ P. h

$ s( r' N  X$ ]4 Z! F閮: 甇斤 http://ithelp.ithome.com.tw/question/10077313
6 I% \. A0 o% A" \5 s' y7 ]* v3 a" \" p, g; R: P/ H

8 ?" C+ J0 W% R! o2 \  R. x, l/ G" c/ y/ O
6 w* {# ?$ w" @* t% S- J
4 ?9 A) R3 K' z6 e
3 }; E/ u  [7 a0 ~/ _9 `8 N9 R3 p

' P& l. o8 E" D# h7 Y7 e
6 j% ]) H* i8 i$ V1 W( C

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-24 10:19 , Processed in 0.069916 second(s), 21 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵