52AV璈A|52AV.ONE

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

[linux隞也 yum 貉牧

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-2 15:41:09 | 芰閰脖 撣 |摨閬 |梯璅∪
銝yum蝘駁方摰鋆 $ N1 |' V' K/ i9 a' P7 ~  M
1.亥岷臬行摰鋆yum" Q0 ^& }; o7 \  w: U$ B
; l+ @5 a! E; C! {9 h' X
  1. [root@localhost ~]#  rpm -qa | grep yum
    1 G8 F3 A- C9 d+ T: T: Y7 k8 u7 u
  2. yum-metadata-parser-1.1.2-3.el5.centos
    / E+ j- t- N: o" N7 A: X
  3. yum-3.2.22-33.el5.centos
    1 g7 W6 H& q% R, b7 z6 M( u5 H
  4. yum-fastestmirror-1.1.16-14.el5.centos.1  ?; ~) p0 A0 j7 G  Y" P
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
/ ]& ^7 f' R1 _4 R
2.蝘駁巾um (蝘駁斤孵拍車銝喳)5 K% D& R* r" T# v1 R2 [, z, _
2.1肘um孵蝘駁
. X6 Y7 j% b; u. d" L
  1. [root@localhost ~]#  yum remove yum*
銴鋆賭誨蝣

% S9 |2 o. n5 @* V% _
2.2禿pm -e孵蝘駁
, n. B9 j' H2 l  q; z/ @% O6 A( u#亦鈭yum瑼獢閬蝘駁斤
5 a/ F5 c: W1 g7 `4 I$ c
  1. [root@localhost ~]#  rpm -qa | grep yum
    * z$ l2 j% m" |7 b/ _* |
  2. yum-metadata-parser-1.1.2-3.el5.centos
    5 }2 F5 k5 u6 x* S" ?9 |  H' P/ A
  3. yum-3.2.22-33.el5.centos
    , b9 \9 J8 a, @1 P3 ]  j8 F8 Q, e
  4. yum-fastestmirror-1.1.16-14.el5.centos.1+ O! k4 o' M: R5 r
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
( R+ n& C' M' X4 @0 N+ i. T
#蝘駁巾um憒閬敹賜亦訾抒憿,臭蝙 --nodeps 賊
4 ^8 V# o, L% A5 b
  1. [root@localhost ~]# rpm -e yum-metadata-parser-1.1.2-3.el5.centos
    " \' [3 Z/ Z( {$ Y( I6 ^
  2. [root@localhost ~]# rpm -e yum-3.2.22-33.el5.centos
    . M: n( g/ ~( W5 M1 E' |6 m0 P
  3. [root@localhost ~]# rpm -e yum-fastestmirror-1.1.16-14.el5.centos.18 [% `: H- {' c; @5 n, q
  4. [root@localhost ~]# rpm -e yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
5 j5 q4 Y5 h: G4 m
鈭摰鋆yum% ~4 I5 f2 P( w3 s3 M3 |
1.摰鋆皞
' H" h* n! `% G典鋆皞其遢臭誑唬誑銝蝬脣亦, u) x6 {4 N8 n. M; T: N3 [8 j
隢靘芾閬曉啣鋆皞3 C: `; @6 S) M* Z: m$ K+ `6 R
i386 :
/ c; C: k, X& j# F+ S) z+ x' q# shttp://mirrors.sohu.com/centos/5/os/i386/CentOS/
5 e0 y2 R. l& ^& T" {% A4 ]7 j- fhttp://mirror.centos.org/centos-5/5/os/i386/CentOS/
$ ^' F$ R# Q8 A; b; ?
4 }; w2 \/ M7 Z7 l- Ax86_64 :
$ k6 T; ^' u6 [) x3 u6 D9 X, khttp://mirrors.sohu.com/centos/5/os/x86_64/CentOS/
  C0 H4 Z& V0 q3 K; _+ p, k' ?http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/" h1 u0 m) O4 \: H* ]' O" `7 {8 {3 T
/ T' _" @% x# h- q: r8 U
9 ?( d- _0 u- [/ y2 \0 R" }9 h
肘um其遢銝餉臭蝙典唬誑銝4瑼' }* v" L& O+ u5 m/ g3 I) \' J. H1 ?
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm        
1 R& o3 x, `9 E; I6 ^; t1 Yyum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm% c2 c; q0 f0 Y0 l) _* J
yum-3.2.22-37.el5.centos.noarch.rpm, c# i; @- H) L9 N
yum-updatesd-0.9-2.el5.noarch.rpm
* X- C* [- I0 V6 @8 f
2 \. D. D4 Z5 d/ b2摰鋆yum
8 _2 G0 i/ U" [5 v- i- ~i386
6 i- o3 D: ?' U! Y. u
  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( F$ ]% _; Y- O  e& z2 P$ d$ v# S
  2. [root@localhost ~]# rpm -qa |grep yum
    / j7 V1 \" C; `) F' @( h9 d
  3. yum-updatesd-0.9-2.el5. c  R! B) A$ N; A4 {
  4. yum-metadata-parser-1.1.2-3.el5.centos+ O, R  j4 T. [$ M4 v6 s
  5. yum-fastestmirror-1.1.16-16.el5.centos
    - t2 _) x& J8 b1 n' x# v( l2 q; C$ ?
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

! }6 E! ^6 \+ C- E! y- {
x86_64
' I8 c; H) J$ D) N/ z( m+ h4 a) 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! I' i; ]9 T$ W) {+ X* o
  2. [root@localhost ~]# rpm -qa |grep yum. p' q7 f$ P! X6 {% y
  3. yum-updatesd-0.9-2.el5
    ( o  i' F' F4 m: O  f' I
  4. yum-metadata-parser-1.1.2-3.el5.centos
    9 S1 M5 S) i* W9 t
  5. yum-fastestmirror-1.1.16-16.el5.centos
    ! K. A) O4 i' z/ j
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

+ R! F2 A# K' W
2.2湔唳撌脣鋆憟隞(靘鈭粹瘙臬行湔)' M+ j- i" e4 I
  1. [root@localhost ~]#  yum -y update
銴鋆賭誨蝣
) M. T+ g9 b( e: i- o3 B% O
銝yum隞方牧
3 f/ g6 {2 U/ n' j  g其蝙肘um嚗撠銝頛梯正嚗摮曉/var/cache/yum桅銝' K7 o6 W; C  l1 ]6 }0 c. {3 e7 n
1.yum湔
$ B7 A# C  ?# uyum check-update
  `4 g# z" Z3 _  ^#瑼X亥賣湔啁憟隞嗆鈭
; \6 K  ^- p( v2 v$ n6 ]* ^/ _8 s& ?
yum update
+ _, R3 G) ]1 ~$ `3 D#湔唳撌脣鋆憟隞塚亙罕pdate敺X乩憟隞嗅蝔梁閰勗舫撠閰脣隞嗆湔
2 |# D! S% i0 @& f8 u5 M' n憒yum update httpd
1 D! D. H0 Q, F, q3 j9 V% e' `/ F0 A. P' e) r+ b& [* O
yum upgrade
5 E' J! V: t, A#質update撌桐憭嚗撌桀亙冽慶um upgrade銝鈭喳瘣格掠憟隞嗡銝韏瑟湔堆憭批雿輻典函砍蝝
2 H3 z1 p& ]* Y" k6 k1 |. z9 v& ^- f+ }& @1 i
1.1摰鋆.蝘駁文隞
( V0 {/ P8 G: w& w) |% B: gyum install ' H+ x& B; l2 {: F: d) C& E/ e
#摰鋆憟隞塚install敺X亥摰鋆憟隞嗅蝔梧憒yum install httpd亥賊銝韏瑕鋆閰勗臬冽敺銝*憒yum install httpd*
( I. _( n# O: r( Q( q
2 `4 L. a- V* C  uyum --enablerepo=(Repository) install 摰鋆芯蝙冽憟隞嗅澈,憒憭,銋臭誑,亦/etc/yum.repos.d/鈭.repo$ y: H6 T, ~* u% n5 m
憒yum --enablerepo remi,remi-php55 install php
6 j5 H/ s" @1 T; C! g9 \# [- @- j9 B& z6 }4 }8 p7 x
yum reinstall啣鋆憟隞- [6 x+ j$ r$ i) r% f+ Y$ d
( G- N. q  b/ i7 ^3 I) E% k4 y, A
yum remove" Q# O( ?& X" t% O
#蝘駁文隞,券桀啁訾抒憿嚗臭誑yum deplist 曉箸訾憟隞,銝銝蝘駁支閬憟隞,頝喲閬靽憟隞,憒祉典隞(蝝憟隞嗅航賣典)
5 Z; K! Y! }- q8 B

8 d# ~2 X5 A0 W6 Y. O5 V& b靘憒:
. n- E! T, W% H$ z# K& Y9 tyum deplist httpd | grep -v httpd | grep provider | awk '{print $2}' | sort -u9 T6 U  s4 q/ W4 j$ R6 ~. J8 w
remove敺舀亥蝘駁文隞嗅蝔梧憒yum remove httpd亥賊憟隞嗡銝韏瑞宏斤閰勗臬冽敺銝*憒yum remove httpd** t" W* l7 ~. V2 _8 ?* s% G
+ Z$ T) T* `% ~' M
yum clean8 F8 b- R. Q; n# j5 a
#皜文鋆銝頛怠憟隞嗅憪瑼嚗憭批臬曉/var/cache/yum嚗撣豢銝yum clean packages砰um clean all嚗銝甈∪典芷扎; A% t5 U; X7 D6 m" r' q  _+ Q
! J+ ]) \8 b1 I3 q$ E, S! f0 u
1.2皜怠
  g4 J- f: e7 I) G- E* A" `) vyum clean
6 k* Z8 j: O' v" E8 ^#皜文鋆銝頛怠隞嗅憪瑼嚗憭批臬曉/var/cache/yum
/ w- s* Q" ]( z0 E
  ]  C+ E2 T' Y) ~: [$ Y* }/ Kyum clean packages
! C8 m/ j4 W( c8 ^) o( G4 l#其皜斗怠(/var/cache/yum)桅銝憟隞: I8 Z+ D6 m5 ?' y5 a" N* S
- ]. t4 O0 U9 S$ E8 |* a5 M
yum clean headers
( }  F' m  P, X3 Z  ^#其皜斗怠(/var/cache/yum)桅銝 headers
  P3 w* i9 _* `( g( z5 H
1 n( b: ~& [/ u8 vyum clean oldheaders6 n6 {- y  l- i7 O7 {2 n
#其皜斗怠(/var/cache/yum)桅銝 oldheaders
. b/ g! ~; w. F" p& M  N8 W2 n7 ~) j( c+ g( ^  t. s
yum clearn all- G: R) q  y  T8 R
#湔交怠賭甈⊥扎6 K/ X, R0 R: {& m; e* s( c
0 c  b$ p/ T+ x5 }) D
1.3皜
1 ]: e5 H% K  ]. s5 ?yum list  b; `" [9 B0 ^! {; R% Q
#箸Repository摨憟隞塚亙甸ist敺X亙隞嗅蝔梧臬桃典箄府憟隞嗚
5 k' I3 }" D+ q* N$ N
; p! O/ h7 u& u- P' p1 ~, qyum list updates
  e( k( K! R8 U, J#箸臭誑湔啁憟隞
* R- _0 F% {$ G8 V: v! m0 T5 {* q6 E# J6 c; p# N% Y2 E
yum list installed
2 y5 o1 W' b2 u: H, y1 ?$ W4 W#箸撌脩摰鋆憟隞- `5 [1 Q( [' |3 G+ L9 M2 h
2 ?, h8 D- f/ b& [  }- \* E
yum list extra: ~, Q1 w+ T5 ~5 H2 p2 X
#箸撌脣鋆雿銝 yum Repository摨 抒憟隞! g' t4 r/ G, @, a; a

# P% j2 U. D9 J1 P9 m0 }0 H1.4箏隞嗥賊鞈閮/ `. _; i- K6 Q
yum info4 A, M3 l4 _* }& M: k* k& d0 ?
#箸憟隞嗥賊鞈閮嚗亙甬nfo敺乩憟隞嗅蝔梧臬桃典箄府憟隞嗥賊鞈閮8 }8 B# ^9 Z! e1 Z! q& z
憒yum info httpd yum info httpd*嚗撌桀亙冽潭*隞去ttpd剔賢箔
; q4 y' k( ]- b) D3 ^1 J2 |+ @; T( ?$ M, y7 p0 }3 d4 f4 ]7 \4 `
yum info updates
3 h, a* C0 @; u! s#箸臭誑湔啁憟隞嗉閮
! @% v3 e) _2 x4 J
# I9 l5 ^; Z! Y# u. J, byum info installed4 z+ L( K* o, C' ~
#箸撌脣鋆憟隞嗉閮
. ~1 ?0 r$ B- Y& B  H, p6 y. E$ q; E3 u: Q, x: p  f- ]
yum info extras- E" [6 G2 X1 `- u2 u) P
#箸撌脣鋆雿銝 Yum Repository摨 抒憟隞嗉閮3 p' \" Z  j6 d) y
  U2 \# k2 t2 X$ I' `  m

; I5 \( R& ]% A+ I0 u& q# |5 G1.5撠  C$ g8 s1 A. U, @; R) L4 t/ \: M$ v
yum search! b& D. G8 K6 N4 @
#撠賊憟隞塚憒yum search httpd嚗典銝剜曉唳閬憟隞嗚憿隡潮萄券, j. s4 u6 L( O/ N; ^
9 F) Q) L5 Q* t! D
蝝憟隞嗡銝kernel% @, A3 k7 d, a' n& ]
憒唾肘um靘蝝憟隞塚雿銝喳逃ernel閰晞隢銝W瘜3 c' m' O( U  s: W( \+ U6 h) M$ [
[root@localhost ~]# vim /etc/yum.conf
( Z& ]: p1 H, W3 _/ b% W#沍main]嗡葉乩W銝. N. F6 x1 g) {( f
exclude=kernel kernel-source
, m$ Z: d: R  _5 g4 |
& [& n+ D  F' e4 y嗉牧yum冽敺憭嚗雿臭砍虜函憭扳撠望臬鋆湔啣蝘駁扎拐蝑典唳亦撠勗臭誑鈭+ x, [7 L/ f) L/ u$ s4 d

4 }* a( {' k, y# R

& Q; ?0 n+ v# D$ Myum撣貉憿臭誑摰蝬脩閫蝑. G; }' c' J! m
http://yum.baseurl.org/wiki/Faq
0 R0 x3 S8 y4 T0 U9 a" h4 P0 \3 m+ ]* E; A! E. W& Y. u
" C" N5 G! W, F9 q
閮: 甇斤 http://ithelp.ithome.com.tw/question/10077313" J" s+ r/ k8 X/ l
/ ^- Y' R- m9 c" C
' L( ?5 {6 k+ R5 r

( }3 U5 o$ B; H& m! D: j, A, F5 C. e6 K

$ r& ^& F" D4 B* }; D# u# p3 d) G" x; G- }7 O: V

% N- r* F' M, l1 j7 [8 A7 T6 y# j0 e/ u

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-28 06:17 , Processed in 0.062622 second(s), 18 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵