52AV璈A|52AV.ONE

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

[linux隞也 yum 貉牧

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-2 15:41:09 | 芰閰脖 撣 |摨閬 |梯璅∪
銝yum蝘駁方摰鋆 7 u+ _" I; T5 w4 O% E8 r
1.亥岷臬行摰鋆yum+ b8 Z$ Z5 a. \" N# }

; l& w; J$ G' c' c5 w% `5 {% G
  1. [root@localhost ~]#  rpm -qa | grep yum( p# I0 X6 c4 M' M* n
  2. yum-metadata-parser-1.1.2-3.el5.centos
    6 O; B6 V& W- h
  3. yum-3.2.22-33.el5.centos- V- _4 F8 M( c
  4. yum-fastestmirror-1.1.16-14.el5.centos.1
    + `( O, i- T: J
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
3 _" Z1 O2 ?+ \* b+ ~
2.蝘駁巾um (蝘駁斤孵拍車銝喳)! d  }: X! x- [. H& y5 t, }7 H
2.1肘um孵蝘駁* Z( ]8 `8 N" {0 q# n  i5 m9 R
  1. [root@localhost ~]#  yum remove yum*
銴鋆賭誨蝣
# ?7 c/ M# @9 D+ I. e& U
2.2禿pm -e孵蝘駁4 v# u* r! [0 t$ {
#亦鈭yum瑼獢閬蝘駁斤
# A9 I# B! e. O
  1. [root@localhost ~]#  rpm -qa | grep yum- _) V* y# c8 F' U% c) r
  2. yum-metadata-parser-1.1.2-3.el5.centos
    " U( b4 H8 l) r8 r* ~
  3. yum-3.2.22-33.el5.centos
    % d% U) W2 H, K4 P1 E  x# V
  4. yum-fastestmirror-1.1.16-14.el5.centos.1
    * ~' c3 u" l# {+ \3 @
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
+ C# e1 j  v. w; T* d8 A
#蝘駁巾um憒閬敹賜亦訾抒憿,臭蝙 --nodeps 賊
, d% |; a* K8 K1 f# q
  1. [root@localhost ~]# rpm -e yum-metadata-parser-1.1.2-3.el5.centos1 J9 a5 F  }0 ^, p: w( K3 B. E
  2. [root@localhost ~]# rpm -e yum-3.2.22-33.el5.centos
    & w) C4 D" ?# X" H& n! j8 p0 M
  3. [root@localhost ~]# rpm -e yum-fastestmirror-1.1.16-14.el5.centos.17 W0 |9 k0 G4 ]5 y! |6 F
  4. [root@localhost ~]# rpm -e yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
) o& u: O6 }$ n6 a7 y7 j8 J
鈭摰鋆yum
! \3 g% _9 A, n1.摰鋆皞
3 B% F+ `2 C7 y( Q典鋆皞其遢臭誑唬誑銝蝬脣亦+ y, p. C! M5 G5 w6 v/ V
隢靘芾閬曉啣鋆皞
- p4 v# M/ N3 N& N6 s- si386 : # z  @# @$ B4 M0 k
http://mirrors.sohu.com/centos/5/os/i386/CentOS/
1 P  |3 `, v' x% _" u& L/ v7 E9 h$ Ohttp://mirror.centos.org/centos-5/5/os/i386/CentOS/
+ r( B8 X& }# B0 J; i( a" \. {1 t8 m& U0 o1 d! N3 s
x86_64 :
% N+ C$ ^1 ?5 G+ zhttp://mirrors.sohu.com/centos/5/os/x86_64/CentOS/
* ~1 }0 X' m9 Mhttp://mirror.centos.org/centos-5/5/os/x86_64/CentOS/
# G/ `: k" E3 E! s2 z. M9 G: B8 z5 s- [9 a! v& Y
4 v1 p) A1 V" O6 }% P' c
肘um其遢銝餉臭蝙典唬誑銝4瑼
6 V# B; N  Z+ _4 F3 Y; J( \yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm        ' b) k. Z7 c& U9 l* d; J
yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
6 Z" H. y0 z/ Y, D" f, u8 B5 zyum-3.2.22-37.el5.centos.noarch.rpm
& Q6 f* ]3 Y, S3 B" K# o& eyum-updatesd-0.9-2.el5.noarch.rpm2 n+ _1 a6 j+ q# w

$ ?; @7 z$ I3 V2摰鋆yum
* b8 C2 @( V$ T6 ci386# `" y4 J# W/ R+ C. |% J9 t
  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
    5 I# `# O9 v1 U, {" Q. a6 v) \  n
  2. [root@localhost ~]# rpm -qa |grep yum
    1 n( O3 n) [9 O% u: ~# X1 S& A
  3. yum-updatesd-0.9-2.el5$ e+ v( T/ t+ B: a7 `8 w
  4. yum-metadata-parser-1.1.2-3.el5.centos
    $ c4 ^. W& R& O  Z
  5. yum-fastestmirror-1.1.16-16.el5.centos
    " J" D0 A! ^, |
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣
- B& M7 w) i: c
x86_647 L7 M( M! ?$ ]; \" P3 G  t
  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 N/ H9 e' A% [
  2. [root@localhost ~]# rpm -qa |grep yum
    $ x+ `- c+ H% u6 Z5 a6 M
  3. yum-updatesd-0.9-2.el5
    9 Z1 G: R" H- V0 H
  4. yum-metadata-parser-1.1.2-3.el5.centos$ s, Q- u$ u2 A
  5. yum-fastestmirror-1.1.16-16.el5.centos
    1 |3 i! t' I  A) C( i. _9 @
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣
# T9 P- A# q' d. D
2.2湔唳撌脣鋆憟隞(靘鈭粹瘙臬行湔)- B2 ]8 Q4 }0 B, m$ O* k% l
  1. [root@localhost ~]#  yum -y update
銴鋆賭誨蝣
; ?. i/ j3 K: w* U5 l; D1 F( u
銝yum隞方牧$ J4 |) |7 }- O1 ~! u* ^$ ]; s
其蝙肘um嚗撠銝頛梯正嚗摮曉/var/cache/yum桅銝& b: Y% {0 q, i& k# u6 S
1.yum湔
7 u$ v! X# D. M  ?" a3 \5 dyum check-update
- R3 \6 B! F8 o#瑼X亥賣湔啁憟隞嗆鈭
7 N* M# J) K& ?* o0 M; ?! U- n9 w& r- g7 r! s
yum update " X- ~# S+ w3 [, @* ]
#湔唳撌脣鋆憟隞塚亙罕pdate敺X乩憟隞嗅蝔梁閰勗舫撠閰脣隞嗆湔
2 \$ V% K# v7 {! y2 m. s7 F( o憒yum update httpd
! k& q7 r' J* Y$ V$ Q* F, y/ H& E" z, E/ j( x+ C  F
yum upgrade5 b; m. g% `" j3 z2 }+ `. E5 P
#質update撌桐憭嚗撌桀亙冽慶um upgrade銝鈭喳瘣格掠憟隞嗡銝韏瑟湔堆憭批雿輻典函砍蝝/ f1 P7 s5 R% @( L2 J

) f2 j- ~1 g( P* k1 T: M1.1摰鋆.蝘駁文隞
! d1 C# z1 M: Byum install % A, A2 l# F# H- G# O
#摰鋆憟隞塚install敺X亥摰鋆憟隞嗅蝔梧憒yum install httpd亥賊銝韏瑕鋆閰勗臬冽敺銝*憒yum install httpd*
, w& |2 r5 k+ Q& C0 ~2 I9 x) @
3 E. c5 t* Y0 p' S  p9 vyum --enablerepo=(Repository) install 摰鋆芯蝙冽憟隞嗅澈,憒憭,銋臭誑,亦/etc/yum.repos.d/鈭.repo
$ R) g" [8 @( c) D$ P% S8 ]  K
憒yum --enablerepo remi,remi-php55 install php3 G5 I* v4 `! A- E* B  D- B$ X
  ^& D  ^4 z: d' p, W# P
yum reinstall啣鋆憟隞4 n4 k1 d0 F1 k) ]

& D" @- S/ z" k+ X5 p8 T( _yum remove  u8 \+ }1 M$ U& C
#蝘駁文隞,券桀啁訾抒憿嚗臭誑yum deplist 曉箸訾憟隞,銝銝蝘駁支閬憟隞,頝喲閬靽憟隞,憒祉典隞(蝝憟隞嗅航賣典)
8 B- R  d4 [4 t, d
" R- A% e. y# ]
靘憒:% [6 v- s4 j3 w
yum deplist httpd | grep -v httpd | grep provider | awk '{print $2}' | sort -u" h; Y0 r# a3 `- Y
remove敺舀亥蝘駁文隞嗅蝔梧憒yum remove httpd亥賊憟隞嗡銝韏瑞宏斤閰勗臬冽敺銝*憒yum remove httpd*0 D- P' H, Q6 _* G, B5 n

3 k$ Q8 ~# E/ [2 ^, J& p' Myum clean5 K5 I8 @0 \2 }" J+ c
#皜文鋆銝頛怠憟隞嗅憪瑼嚗憭批臬曉/var/cache/yum嚗撣豢銝yum clean packages砰um clean all嚗銝甈∪典芷扎
5 B* g% W4 N  y' F, J. W( v: v+ O4 p# j. b
1.2皜怠
3 L1 u1 h' g: gyum clean
; K' b: k) a1 f, s& d  M#皜文鋆銝頛怠隞嗅憪瑼嚗憭批臬曉/var/cache/yum3 |5 B2 y/ ~; ?+ \' p2 I( O

- I! U' v# p6 [" D, H# j' lyum clean packages
  ]0 n0 q' w: ]: _; n4 N#其皜斗怠(/var/cache/yum)桅銝憟隞! f' Y3 p, B3 @3 l- p2 N3 c

) N7 t( |( V6 s+ k: H) n9 I. ayum clean headers
* ^3 J2 j! i+ i. A! ^: {8 |#其皜斗怠(/var/cache/yum)桅銝 headers
" ^) z- @2 A7 g  M1 {  |+ `0 }* [2 i  m
yum clean oldheaders
* ]% p( a0 Y0 C4 G- e" C#其皜斗怠(/var/cache/yum)桅銝 oldheaders
5 e- ], R6 x" j1 r4 ]  ?+ {
$ g3 K1 s$ v, \$ a) iyum clearn all
) A2 @# L$ Z' U1 R#湔交怠賭甈⊥扎
7 J) Y1 B  E& {; |. V$ p/ A
6 H) {8 @* F; ], W% a0 H' N1.3皜5 u2 {. j7 h9 u7 u6 f% Y) U
yum list
& ~0 Q, ^% t$ L' T6 \+ s) r#箸Repository摨憟隞塚亙甸ist敺X亙隞嗅蝔梧臬桃典箄府憟隞嗚4 c" o; a$ D3 ?2 S5 e/ R" h) @

! y' Q8 A. V1 |; D9 Y2 O# vyum list updates
1 k, b) j: W# J1 t% _* E#箸臭誑湔啁憟隞0 }$ {; d5 ?7 a8 s
0 B; X1 v3 I- ?' J
yum list installed
4 f  K! {6 @! c9 K+ Z  U#箸撌脩摰鋆憟隞8 U* M$ w: _7 Q2 Z: I
% d% W% x6 j8 U8 X4 y4 F
yum list extra. y, N, K( S  B4 @
#箸撌脣鋆雿銝 yum Repository摨 抒憟隞
% f: {0 k/ j# U" F; a
% Q" A: c- k$ V% z4 R1.4箏隞嗥賊鞈閮* n9 D# @. C* M
yum info+ c' \+ h, @1 m+ `4 ?
#箸憟隞嗥賊鞈閮嚗亙甬nfo敺乩憟隞嗅蝔梧臬桃典箄府憟隞嗥賊鞈閮# @1 U, \* M+ a# a. @
憒yum info httpd yum info httpd*嚗撌桀亙冽潭*隞去ttpd剔賢箔
' l8 B4 P4 _5 E# r& ~4 t' C: a4 @* ~, D
yum info updates% {% J* F  ]7 f1 W& E
#箸臭誑湔啁憟隞嗉閮
7 w) m. f& s+ ?& v1 r7 U
  P' h9 ?$ b' f( L. S4 p$ `) {; nyum info installed
7 c& W* v, @2 s/ C5 U0 x9 I#箸撌脣鋆憟隞嗉閮
# t/ U7 o9 v4 y9 h( d- c. K  C6 X" D+ G5 G6 o  n& V% @6 b* H
yum info extras
8 {: u3 [# c9 y5 h' G- E0 i#箸撌脣鋆雿銝 Yum Repository摨 抒憟隞嗉閮
8 r; M+ h% d; n# r' {+ A" f5 y/ ?$ L! D8 C9 D1 _

. e! p6 X' q+ O! y5 K$ w1.5撠
. M) h- \8 T2 l! p( Eyum search
! z) g6 i1 D$ x- @! M6 N2 z7 V% @7 |+ a#撠賊憟隞塚憒yum search httpd嚗典銝剜曉唳閬憟隞嗚憿隡潮萄券' a0 N! G8 h7 V8 ~( d

; x" m# y( ^! ^1 S0 q' S5 e9 H蝝憟隞嗡銝kernel3 B8 q5 i) z2 `) E& @$ U; D- I
憒唾肘um靘蝝憟隞塚雿銝喳逃ernel閰晞隢銝W瘜
" G/ o  S5 \, K# z! m8 n0 c[root@localhost ~]# vim /etc/yum.conf
& l! D; U. ?% X! k5 Z* \8 ?2 l#沍main]嗡葉乩W銝" g3 u6 V3 J8 l! @
exclude=kernel kernel-source. l' ~* h* R0 ?! e3 t* o
# F6 Y" \/ v8 N7 j) P9 V
嗉牧yum冽敺憭嚗雿臭砍虜函憭扳撠望臬鋆湔啣蝘駁扎拐蝑典唳亦撠勗臭誑鈭- B  `! k% Q; Z" x- b- j4 Y
9 W. r7 H( W( a. J" u
, T& `6 g, r- s% R! Q
yum撣貉憿臭誑摰蝬脩閫蝑- b/ @0 U6 H$ j2 F
http://yum.baseurl.org/wiki/Faq3 x3 i) V; D: x9 Q4 l
, K) U1 m& @. v% f; ^

7 M! t  c. F0 |# u8 E# n閮: 甇斤 http://ithelp.ithome.com.tw/question/100773130 \8 [- Y% p3 u2 Z
. M& a6 @" k$ s3 K+ z

- \0 D5 c: D9 a4 Z) h! ]9 g* K2 ]( b4 }

+ c5 }- Z3 y$ w) C
( ]% Z2 k2 \! s" A. W5 T2 N+ J( _8 ]

* \  z; d/ }. r- D5 V1 {7 }) G7 C" o0 R! b' x3 ^) s# }4 ]6 j

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 08:42 , Processed in 0.070671 second(s), 20 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵