52AV璈A|52AV.ONE

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

[linux隞也 yum 貉牧

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-2 15:41:09 | 芰閰脖 撣 |摨閬 |梯璅∪
銝yum蝘駁方摰鋆 ; \/ ^- f6 D7 k/ y, g
1.亥岷臬行摰鋆yum( L# y( O+ L/ j# D* ~: n' I

1 |$ G' |9 v: D8 }2 `$ C
  1. [root@localhost ~]#  rpm -qa | grep yum
    1 v1 `4 Y: Q2 K$ F: y
  2. yum-metadata-parser-1.1.2-3.el5.centos
    * T* g6 q# F! ]3 F3 }
  3. yum-3.2.22-33.el5.centos
    % u( L& ?" W* d% ]6 `
  4. yum-fastestmirror-1.1.16-14.el5.centos.1$ a# h  p6 [) `. k
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
. @* d4 N% U% S
2.蝘駁巾um (蝘駁斤孵拍車銝喳)% S! N2 @6 N1 V# K5 u% C- f0 j
2.1肘um孵蝘駁/ z7 a: y. {9 S8 D* z& e+ t! Y5 |
  1. [root@localhost ~]#  yum remove yum*
銴鋆賭誨蝣
/ }1 ~( I% P( E& n) I6 R2 f3 }
2.2禿pm -e孵蝘駁2 T" n& M9 j6 o* @! B
#亦鈭yum瑼獢閬蝘駁斤
0 E$ N. l! n8 p0 o' h7 O3 H1 F! D
  1. [root@localhost ~]#  rpm -qa | grep yum
    - ^5 m, J9 u5 s" t
  2. yum-metadata-parser-1.1.2-3.el5.centos
    $ J2 E: L, ~9 w2 K
  3. yum-3.2.22-33.el5.centos
    & @1 Z7 v; X& B( \
  4. yum-fastestmirror-1.1.16-14.el5.centos.1
      l2 e5 `7 `/ ]3 m- j+ j
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

4 b: b" _2 F: E6 B1 X$ Z4 H
#蝘駁巾um憒閬敹賜亦訾抒憿,臭蝙 --nodeps 賊% ]* K. c7 i; K, T
  1. [root@localhost ~]# rpm -e yum-metadata-parser-1.1.2-3.el5.centos. u0 d+ W' ]# n6 e5 I5 d
  2. [root@localhost ~]# rpm -e yum-3.2.22-33.el5.centos% p- Q$ w7 ]  |) x
  3. [root@localhost ~]# rpm -e yum-fastestmirror-1.1.16-14.el5.centos.1" ^* N$ T2 J7 o* D, U6 a
  4. [root@localhost ~]# rpm -e yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

7 g& o! \5 z; q8 W# D
鈭摰鋆yum
  \, T3 ^- Y4 f; Y1 L9 R  Z4 P1.摰鋆皞
5 \0 P; q2 k0 K典鋆皞其遢臭誑唬誑銝蝬脣亦" x9 b) L9 z( d2 |7 T; H
隢靘芾閬曉啣鋆皞
2 T7 e4 J( Y! z% qi386 : 4 D+ ^4 R! [9 U
http://mirrors.sohu.com/centos/5/os/i386/CentOS/' O: w$ B0 _6 R0 Y  t
http://mirror.centos.org/centos-5/5/os/i386/CentOS/
4 f& i( ?( \* t2 \$ E- K# g
9 m2 C3 N% X& Z3 {/ I/ `( ~" h; b$ ox86_64 : 3 i3 P5 m4 n- y+ K% ]' Y5 g0 ~
http://mirrors.sohu.com/centos/5/os/x86_64/CentOS/
8 X  Z3 h6 o- X2 v$ D9 Z" x0 Phttp://mirror.centos.org/centos-5/5/os/x86_64/CentOS/
& F# T5 s  l, v0 C. ]$ X* v2 o6 ]' e8 q/ t, F  r$ m

! a8 C/ i6 G( @/ g1 o& Z肘um其遢銝餉臭蝙典唬誑銝4瑼! R9 p6 S: G0 J' q
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm        
9 M  Y: Z! m. B8 {3 }yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm& m0 [9 O6 r0 R
yum-3.2.22-37.el5.centos.noarch.rpm( @- M5 ?( X' P) x
yum-updatesd-0.9-2.el5.noarch.rpm
% V+ W; A; }9 U4 l) b  Z% B) j/ ^5 v- ~7 B# @( {' A' d' S" S
2摰鋆yum. q; n$ ~' ?+ F5 s. @
i3861 p5 n1 H  m! ]! ?5 G8 h' l0 u6 R
  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
    / }4 e2 i6 j/ }% O. ]# X' e) F
  2. [root@localhost ~]# rpm -qa |grep yum& J6 f+ ^8 j! A% u0 g. Q
  3. yum-updatesd-0.9-2.el5+ g0 ]# E( x3 O
  4. yum-metadata-parser-1.1.2-3.el5.centos1 e+ e( w( a0 L9 r; `
  5. yum-fastestmirror-1.1.16-16.el5.centos' ?, t  X' U; @$ g5 V  p
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

+ `  ~! X3 }" M! Y5 f  p& D8 S
x86_64
# k: e- Y- e  ^6 _7 `0 a/ f
  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
    0 f, T2 U6 R. m& s7 x; Z: D3 I7 ^
  2. [root@localhost ~]# rpm -qa |grep yum
    7 ?& ?& u7 y8 Y/ D/ T4 `
  3. yum-updatesd-0.9-2.el5( j7 D8 d  s( g& o/ X6 {( r
  4. yum-metadata-parser-1.1.2-3.el5.centos
    * T0 |" Z, `! a* o' q! A
  5. yum-fastestmirror-1.1.16-16.el5.centos8 i- w. B* [! F7 W0 D
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣
. f! a& g$ g: n8 R
2.2湔唳撌脣鋆憟隞(靘鈭粹瘙臬行湔)
1 n! m( x" J+ u0 o- \: E( ?
  1. [root@localhost ~]#  yum -y update
銴鋆賭誨蝣

0 Z! R4 O8 G2 ~2 E% H1 b5 [
銝yum隞方牧
, w+ u0 G" p: H% V, C' t  P其蝙肘um嚗撠銝頛梯正嚗摮曉/var/cache/yum桅銝+ `. w* ]5 l3 F3 u0 a/ S8 B* t
1.yum湔# _' |4 [( {/ Y+ @- y# n
yum check-update
3 r2 ~. _9 E% D' e#瑼X亥賣湔啁憟隞嗆鈭
% E( n. }, E, A* U9 Z" F3 I0 F/ ?( @0 H" m+ ?$ v1 o/ W5 S+ c6 C5 n
yum update
8 \  [0 ]  H2 T0 \#湔唳撌脣鋆憟隞塚亙罕pdate敺X乩憟隞嗅蝔梁閰勗舫撠閰脣隞嗆湔
$ a; F7 r3 w. C! t9 n8 A) g憒yum update httpd
4 j: `3 b3 E0 G; K7 p. c2 f! K) d) U% O- n, f$ y7 ^
yum upgrade
( q. ]. a1 v* `) X" ~#質update撌桐憭嚗撌桀亙冽慶um upgrade銝鈭喳瘣格掠憟隞嗡銝韏瑟湔堆憭批雿輻典函砍蝝4 t9 V* F+ M# _" c: G5 z

$ Q/ b, F0 x2 o) V* e2 A$ K1.1摰鋆.蝘駁文隞. J- H. a/ v+ q1 \
yum install
7 j7 ^: z+ P' \#摰鋆憟隞塚install敺X亥摰鋆憟隞嗅蝔梧憒yum install httpd亥賊銝韏瑕鋆閰勗臬冽敺銝*憒yum install httpd*1 B# C  M( v) U% x6 e' t6 I

) ]) @# t6 \! l3 i* ^( Jyum --enablerepo=(Repository) install 摰鋆芯蝙冽憟隞嗅澈,憒憭,銋臭誑,亦/etc/yum.repos.d/鈭.repo
9 H" Q# `& A% n% m( X
憒yum --enablerepo remi,remi-php55 install php9 H: \: |7 V& J6 E: m

, C  u5 C2 s* V) l1 v
yum reinstall啣鋆憟隞
, Z0 b, e- U# w
: x. X; h6 ~" O2 G  Kyum remove' K) o- @( _4 O  b
#蝘駁文隞,券桀啁訾抒憿嚗臭誑yum deplist 曉箸訾憟隞,銝銝蝘駁支閬憟隞,頝喲閬靽憟隞,憒祉典隞(蝝憟隞嗅航賣典)
6 ^- `1 F! E# S* c  S+ h& }4 C3 V
3 h0 Z1 X& K& [  O9 d8 v" \, C& `" a+ O
靘憒:
- n, j8 q4 d1 f; uyum deplist httpd | grep -v httpd | grep provider | awk '{print $2}' | sort -u0 _$ G! j) l( O/ N: [4 H% Y
remove敺舀亥蝘駁文隞嗅蝔梧憒yum remove httpd亥賊憟隞嗡銝韏瑞宏斤閰勗臬冽敺銝*憒yum remove httpd*
; U# a4 x1 g/ A. V" m0 ?7 [" A. B3 ]
yum clean
' V1 \" E4 D$ L+ u6 Z#皜文鋆銝頛怠憟隞嗅憪瑼嚗憭批臬曉/var/cache/yum嚗撣豢銝yum clean packages砰um clean all嚗銝甈∪典芷扎
  ]6 N% S  \) \: U1 F( l9 x/ ?  D' e# W$ |
1.2皜怠  ~/ C! N9 [* Q2 o( `' T
yum clean
+ ]' j8 i" l/ N) D/ w( a#皜文鋆銝頛怠隞嗅憪瑼嚗憭批臬曉/var/cache/yum  ^( x) i- a$ F5 A5 j
) o- H; l% l* _+ o" c) c
yum clean packages5 z- u: \. ?; {" V; M0 z  ~+ C8 y
#其皜斗怠(/var/cache/yum)桅銝憟隞
* A* y" k5 B( q/ _% G& \
$ S/ h" |/ }. B9 y) n4 B8 \; P& Fyum clean headers
3 T& _1 X( E5 ?/ D" ?5 O#其皜斗怠(/var/cache/yum)桅銝 headers! [: d% K  M9 ~  T2 m- H3 F" `
3 \' k3 Q" f5 Z  u+ B5 v
yum clean oldheaders7 |7 m8 m: F2 o5 q2 {% J) D
#其皜斗怠(/var/cache/yum)桅銝 oldheaders ) d% h: a. G) h5 _* ~

8 x* j) K0 X6 V- U; D1 _yum clearn all" h8 x8 P# p9 @
#湔交怠賭甈⊥扎
+ Q8 e4 R! N! ?6 n% H' E2 m& Z& _: c0 G4 k) E# e4 O
1.3皜
9 N9 ?) i! B9 fyum list$ ?( z. @& H1 I+ V
#箸Repository摨憟隞塚亙甸ist敺X亙隞嗅蝔梧臬桃典箄府憟隞嗚
. o% w: k" E$ y) p' B
( U7 v/ @9 g$ Y' Q$ u. ^4 vyum list updates
# @- C) l0 F) M1 z* m#箸臭誑湔啁憟隞  Q* m, m% D0 F) F8 y# X8 f) e; V' A

9 P/ h: C  p& p, a  S8 yyum list installed
; i$ K8 m% N9 I#箸撌脩摰鋆憟隞
9 D' W7 \0 z- ^* A  ]) D7 y* g( w" K
yum list extra' z- C' ^6 c3 i' U. q+ K0 r( T
#箸撌脣鋆雿銝 yum Repository摨 抒憟隞
+ t+ ^) E9 Z8 x' Y' r4 h; B  K* c# Q9 x9 q+ l$ m2 l. r" o
1.4箏隞嗥賊鞈閮: N" |: D; W# v3 a$ X
yum info- t  m. p) F0 K2 W& `9 W
#箸憟隞嗥賊鞈閮嚗亙甬nfo敺乩憟隞嗅蝔梧臬桃典箄府憟隞嗥賊鞈閮
3 d/ U: [6 I( f) n# J憒yum info httpd yum info httpd*嚗撌桀亙冽潭*隞去ttpd剔賢箔# Q: f% t1 R! y; n
& C: @) Y9 S8 c6 w, z9 M0 H8 H6 C
yum info updates7 B2 H! ~% l& J5 c( h# ?4 t$ J8 X( l
#箸臭誑湔啁憟隞嗉閮1 f4 D7 j8 _+ @' w/ ?4 h

1 ~4 a# Y3 ^8 e% h3 a$ xyum info installed
1 P4 j. J, L% y) W  h! y- E7 Y#箸撌脣鋆憟隞嗉閮3 X. N- J3 ~! x9 u0 _0 _/ e
# E0 S" w: C0 y6 f
yum info extras1 u5 o' F; q8 ^2 e. m1 \! Z
#箸撌脣鋆雿銝 Yum Repository摨 抒憟隞嗉閮$ d. N$ Z: f8 l" n6 \4 f# m
! J. J5 U1 X) d2 k  M# Y7 R5 Y4 F

, O/ r7 d! b% I* O1.5撠
' X# P! I  q* E* g0 m: Vyum search
6 v1 m  W: y; ~2 n' j1 s1 `#撠賊憟隞塚憒yum search httpd嚗典銝剜曉唳閬憟隞嗚憿隡潮萄券
/ p. }: h8 K# P0 I1 U5 Q' y' {& u$ C" y8 f6 o
蝝憟隞嗡銝kernel
/ W5 h' P2 |! J. `8 H8 V' D" [; T憒唾肘um靘蝝憟隞塚雿銝喳逃ernel閰晞隢銝W瘜* N; ~  s# i; D6 U7 V
[root@localhost ~]# vim /etc/yum.conf
9 ~5 v" K6 u2 x0 I#沍main]嗡葉乩W銝
+ c8 ?% c- Y0 U. Hexclude=kernel kernel-source2 m% ~; M3 `) I' s9 ?+ D

! p2 r2 J* l' e% P' L2 c& ?嗉牧yum冽敺憭嚗雿臭砍虜函憭扳撠望臬鋆湔啣蝘駁扎拐蝑典唳亦撠勗臭誑鈭
2 s2 H2 u4 I0 L$ }( E7 d* g  H8 M' S1 \4 C6 O/ i' x$ S

3 k+ x: b3 {  r5 S# ?% \* s! hyum撣貉憿臭誑摰蝬脩閫蝑5 b6 n7 O1 L. \/ n
http://yum.baseurl.org/wiki/Faq1 g  @1 G; L0 Y

# a# ]( X9 s/ O# [7 o

5 l5 l6 G, v1 A. e* _3 m2 x: w閮: 甇斤 http://ithelp.ithome.com.tw/question/10077313" p4 D% _* N, a; h

( B* _5 ^: j8 z0 k& [2 T
. |) B. a  |- Z4 }3 y- J4 C9 F

9 N, E9 K$ P0 x4 W9 D
' x5 M) Z# C6 Z5 J+ E7 {0 u* C5 n: b, f) g- y% Y
5 I3 a6 O3 E4 m  V

  U" g. D4 y# W& l& m+ L9 }

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-21 20:38 , Processed in 0.072342 second(s), 20 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵