52AV璈A|52AV.ONE

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

[linux隞也 yum 貉牧

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-2 15:41:09 | 芰閰脖 撣 |摨閬 |梯璅∪
銝yum蝘駁方摰鋆 4 O7 v' J( r' V* d, ~7 a0 u5 H
1.亥岷臬行摰鋆yum
) [( |' M/ Y1 Q# J

4 g6 W5 v) @7 W' s2 E; H
  1. [root@localhost ~]#  rpm -qa | grep yum# D, i4 F8 i, B. n3 t
  2. yum-metadata-parser-1.1.2-3.el5.centos
    : B6 q5 U. n  x. j
  3. yum-3.2.22-33.el5.centos
    $ n0 w+ ?) _% i; S9 x
  4. yum-fastestmirror-1.1.16-14.el5.centos.1* t* G, j1 p$ k
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
6 k, e3 v" M* t) O5 u
2.蝘駁巾um (蝘駁斤孵拍車銝喳)
9 k4 b$ s# n, ]5 x* l2.1肘um孵蝘駁, |7 K: F2 u0 x" Y; O: F0 @
  1. [root@localhost ~]#  yum remove yum*
銴鋆賭誨蝣

9 O, h5 H4 P6 W7 l/ t7 @# R/ x
2.2禿pm -e孵蝘駁
4 X. v8 ]6 S2 C' V/ Q% `#亦鈭yum瑼獢閬蝘駁斤: m- U& V; R3 ?% D; D6 V
  1. [root@localhost ~]#  rpm -qa | grep yum
    8 J0 J3 Z% I5 S( o4 m3 F
  2. yum-metadata-parser-1.1.2-3.el5.centos
    : w+ W( v! K5 K
  3. yum-3.2.22-33.el5.centos2 r- C% g5 b( P' \
  4. yum-fastestmirror-1.1.16-14.el5.centos.10 ~) ^2 W6 @; m$ n7 z! l) c
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

$ }3 D' B: \7 u
#蝘駁巾um憒閬敹賜亦訾抒憿,臭蝙 --nodeps 賊5 R" E+ n( o+ h) ]# Z, S
  1. [root@localhost ~]# rpm -e yum-metadata-parser-1.1.2-3.el5.centos* K. l& H( V' t: X, l8 b' S
  2. [root@localhost ~]# rpm -e yum-3.2.22-33.el5.centos: e' [! w) J6 \
  3. [root@localhost ~]# rpm -e yum-fastestmirror-1.1.16-14.el5.centos.1
      h/ a+ c7 ]0 x5 m2 T6 z3 o
  4. [root@localhost ~]# rpm -e yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

' h7 _( K2 |. C3 O
鈭摰鋆yum
. F6 G. H& [3 W* l# ?7 M! L1.摰鋆皞
4 G" ]3 ~- `+ u, f2 s1 ~' L典鋆皞其遢臭誑唬誑銝蝬脣亦+ D& A) L- B& p) g
隢靘芾閬曉啣鋆皞
, q* M7 v: H/ P3 H* d7 b- Hi386 :
+ Q2 W8 o6 s1 s7 v  Ohttp://mirrors.sohu.com/centos/5/os/i386/CentOS/  f6 ?0 N4 i( R4 K
http://mirror.centos.org/centos-5/5/os/i386/CentOS/
! h% `! c0 l9 k  [8 M
- x0 O9 t. l) ^! p- G- ~x86_64 :
3 O, x# Q6 x8 {  \# S: z9 mhttp://mirrors.sohu.com/centos/5/os/x86_64/CentOS/
5 j7 M* a" L& o0 \* Yhttp://mirror.centos.org/centos-5/5/os/x86_64/CentOS/
; q: P6 c: E. Q$ @) ?4 \* P0 A# U: G" b9 @3 y: A" @

1 L( E& F! O1 F' [; {. H肘um其遢銝餉臭蝙典唬誑銝4瑼
: ]$ Q. n6 N9 T4 B3 yyum-metadata-parser-1.1.2-3.el5.centos.i386.rpm        
, G4 }- ~8 G+ i; wyum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm% d2 h# p. h8 i# r5 G* y8 x( G
yum-3.2.22-37.el5.centos.noarch.rpm
$ H9 G* [& E' S/ ]) d6 @. _0 Ryum-updatesd-0.9-2.el5.noarch.rpm9 [$ ?# l7 I  U! k
& F) F% s# D( t
2摰鋆yum
, g! W. m+ s  e" I& k2 Q: l! mi386# w0 N/ U. s/ V# P/ ?
  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" Q. J$ B5 J, Z) b
  2. [root@localhost ~]# rpm -qa |grep yum8 F3 D* C9 d1 O- Y
  3. yum-updatesd-0.9-2.el5
    7 s# \' c2 z0 e0 ]
  4. yum-metadata-parser-1.1.2-3.el5.centos# s! K& B+ O0 O4 s7 Z2 V1 D  F- s
  5. yum-fastestmirror-1.1.16-16.el5.centos( ?( U" |: [. C8 {( G4 A1 J
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

. i/ ~# j. A0 {+ g
x86_64* o0 [% b' Y& `+ j$ w1 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
    4 |$ t$ A/ O, R
  2. [root@localhost ~]# rpm -qa |grep yum
    $ q( B7 P2 x1 z& z1 z  F2 M. _
  3. yum-updatesd-0.9-2.el5
    6 u6 V/ r/ _! K. W+ J
  4. yum-metadata-parser-1.1.2-3.el5.centos, N; i! c' s5 w/ e! ^9 ~
  5. yum-fastestmirror-1.1.16-16.el5.centos
    & M# Y* v. h/ H/ K& q
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣

; {* L7 S5 p- T( v& ?2 c. q
2.2湔唳撌脣鋆憟隞(靘鈭粹瘙臬行湔)( r1 a# |9 w" S( S; V( `/ A
  1. [root@localhost ~]#  yum -y update
銴鋆賭誨蝣
- G& m  q+ j; B( N: l+ J
銝yum隞方牧
4 ]' s: D( Q4 T其蝙肘um嚗撠銝頛梯正嚗摮曉/var/cache/yum桅銝9 v- d$ J4 n" I( n/ ]8 s
1.yum湔
( p. S) F4 ]& s% u( qyum check-update & y2 q& H. I3 [( d% [+ P7 l, T
#瑼X亥賣湔啁憟隞嗆鈭  N/ C! W3 d8 U, B
* E2 t( G% |* q: [' P- N: F4 K
yum update 7 c3 x% l! m' [
#湔唳撌脣鋆憟隞塚亙罕pdate敺X乩憟隞嗅蝔梁閰勗舫撠閰脣隞嗆湔" S7 `' i0 `1 k1 i; h' s
憒yum update httpd
% T# M; @/ ~+ _1 O0 a$ T' B4 d8 |) c  r) }4 M1 g  L4 {; g
yum upgrade  I3 e4 y& f( q" O' j" R! P
#質update撌桐憭嚗撌桀亙冽慶um upgrade銝鈭喳瘣格掠憟隞嗡銝韏瑟湔堆憭批雿輻典函砍蝝
# n5 |1 Y( z: t0 a4 ^) L% b& w: R; J* q& g5 X
1.1摰鋆.蝘駁文隞
/ B( s* x- t9 t8 j4 \8 _! b! gyum install 1 }- R/ \. W% }9 ~, Q4 r
#摰鋆憟隞塚install敺X亥摰鋆憟隞嗅蝔梧憒yum install httpd亥賊銝韏瑕鋆閰勗臬冽敺銝*憒yum install httpd*
% n8 P4 q: Y3 E8 q- [0 w8 a; w7 x5 u: {  {; P! e
yum --enablerepo=(Repository) install 摰鋆芯蝙冽憟隞嗅澈,憒憭,銋臭誑,亦/etc/yum.repos.d/鈭.repo
" t& y3 j5 i: W
憒yum --enablerepo remi,remi-php55 install php
7 q1 b1 S! j$ U) d1 i! l8 e( g* ~; g: y, w0 S! \8 l
yum reinstall啣鋆憟隞
/ V. q# @3 D# H* V- L+ L, Q
) h2 m( s; W! m6 T+ x2 ryum remove
. b1 {% g( ]4 s; x9 c& h1 S6 v# E' N#蝘駁文隞,券桀啁訾抒憿嚗臭誑yum deplist 曉箸訾憟隞,銝銝蝘駁支閬憟隞,頝喲閬靽憟隞,憒祉典隞(蝝憟隞嗅航賣典) ( U' Z+ R8 ?+ E  I

% B  p7 X" a2 i+ n1 O靘憒:
+ w4 V4 d5 H- M) ]+ O6 x  o) J' Syum deplist httpd | grep -v httpd | grep provider | awk '{print $2}' | sort -u- k! H1 E6 l' ]* U
remove敺舀亥蝘駁文隞嗅蝔梧憒yum remove httpd亥賊憟隞嗡銝韏瑞宏斤閰勗臬冽敺銝*憒yum remove httpd*9 x: ^& w4 o  A( i5 R

( ]) |' ^/ T# ryum clean. M  n8 q# |, O) t+ ~0 i* f- b
#皜文鋆銝頛怠憟隞嗅憪瑼嚗憭批臬曉/var/cache/yum嚗撣豢銝yum clean packages砰um clean all嚗銝甈∪典芷扎
9 J$ |# A3 O) ~$ U+ k: W* \4 n  f% m
$ p1 p) d9 C0 V- |- g, l1.2皜怠  k' ~3 O7 _1 I
yum clean. q3 C1 Z* Z# X
#皜文鋆銝頛怠隞嗅憪瑼嚗憭批臬曉/var/cache/yum) t. Z! ]: r3 o! v# W: x" o

, }0 {9 s7 C, lyum clean packages
7 s2 a! `8 b1 C# ]#其皜斗怠(/var/cache/yum)桅銝憟隞( o9 H- D" _0 h" f! O, Q* I# r
8 V# x2 J/ N, [! f. r
yum clean headers
% L4 d( `) R" [" s#其皜斗怠(/var/cache/yum)桅銝 headers
! v" T/ ^* A7 N% h( {. E; z( b% j  h. h
yum clean oldheaders
+ s: W+ P5 a: A; H/ u% \% X8 m#其皜斗怠(/var/cache/yum)桅銝 oldheaders : b  l# N& _2 w5 c) q

5 _' E3 \. {) n8 x. e% t6 U) ~yum clearn all
$ }: X. h; F9 n- P#湔交怠賭甈⊥扎
; L5 ^8 }/ Q8 ]* O
( r/ o. h: A- @' |# ~, q2 y) ?1.3皜. P0 z8 O1 I9 K/ y+ P" A
yum list
  ^# [7 t" C5 Q" e/ @#箸Repository摨憟隞塚亙甸ist敺X亙隞嗅蝔梧臬桃典箄府憟隞嗚' k0 j) ~( F/ i5 t
; s# f  e' P" _% d, f
yum list updates
; M5 |4 _6 c# g+ g#箸臭誑湔啁憟隞
& I8 k, V, Y: e& w* H$ Q0 |1 R  H% q
yum list installed
# K' b+ _8 {$ `#箸撌脩摰鋆憟隞
" T  \8 @' M4 O8 H  g+ V! z' B9 F( O
7 x  k! G1 g: x8 y0 N' Eyum list extra
5 i) h7 Y6 X% N2 _#箸撌脣鋆雿銝 yum Repository摨 抒憟隞  l! }, A; G; P
" t. ]0 u8 B* \9 [6 p
1.4箏隞嗥賊鞈閮
% [& ]& i/ b! u1 l0 dyum info
4 [2 v, e6 U) o; N0 g6 l#箸憟隞嗥賊鞈閮嚗亙甬nfo敺乩憟隞嗅蝔梧臬桃典箄府憟隞嗥賊鞈閮% D( e2 A+ U5 u$ ?) r, g% ~3 ]& n
憒yum info httpd yum info httpd*嚗撌桀亙冽潭*隞去ttpd剔賢箔4 h& w( r0 o. U7 A6 `

5 t5 O3 g$ X% I3 F6 x' O- hyum info updates5 ], h, t. {0 h6 \( y  _
#箸臭誑湔啁憟隞嗉閮
& k7 x* g5 k6 A* z  L7 ?9 e( I6 K+ x( }" n& |
yum info installed0 e! v1 J. a3 f+ }. c, G6 C1 n
#箸撌脣鋆憟隞嗉閮
! c  M1 i! X4 W/ x$ m& N
  v  ~: L$ t/ H3 N2 {* W2 p. Eyum info extras
0 t, y  r  w$ ^% T$ ~#箸撌脣鋆雿銝 Yum Repository摨 抒憟隞嗉閮
" u! G8 W" J. b2 p0 V' R9 J
  C! t# C) J3 n$ p) T$ O
( ?* W1 }! Z, q* c  B! B1.5撠1 i0 |% f0 P# Y4 w; M6 L
yum search
) t2 l" e; D# Y+ o# n; A7 r2 f4 f* K#撠賊憟隞塚憒yum search httpd嚗典銝剜曉唳閬憟隞嗚憿隡潮萄券
0 L& |$ s4 ~6 H7 X' F! a" n2 C% ]" G6 A: d
蝝憟隞嗡銝kernel
7 N* i7 K6 _2 y$ S# q憒唾肘um靘蝝憟隞塚雿銝喳逃ernel閰晞隢銝W瘜2 Y$ T$ \* Q  w+ y3 y1 m
[root@localhost ~]# vim /etc/yum.conf6 A6 j# B) v1 N
#沍main]嗡葉乩W銝( B+ g0 E: W, |+ j. U! S) b
exclude=kernel kernel-source
6 ^8 g; G" G% w9 {9 n! d3 N( H. t. A2 H
嗉牧yum冽敺憭嚗雿臭砍虜函憭扳撠望臬鋆湔啣蝘駁扎拐蝑典唳亦撠勗臭誑鈭
; c3 H9 D1 o" l9 x9 v# t2 E3 L' h0 S
% l# c! U+ W$ B3 U. @

- ^, O& b: K6 _yum撣貉憿臭誑摰蝬脩閫蝑
' s- ~) J0 R+ ^4 n. [" fhttp://yum.baseurl.org/wiki/Faq
3 I- _9 H; @. r2 v) @, K5 ]" n# V( H: u! `- `' u" L0 J+ E$ d
' j9 ~7 Z: A+ G* Y
閮: 甇斤 http://ithelp.ithome.com.tw/question/10077313
& W7 ~6 ]' R( _! ?1 X) W$ H: Z1 [7 b3 d# n4 A& y' _
& `' B, G' ^: F) n& ?: n
" I; X2 i1 J6 o- F" u
( E7 b$ j0 D. p$ w- j0 B
3 [) w5 `5 e$ E" _, `$ U+ `! D4 J
: L  I: j2 T+ j2 o

7 e( ~2 y3 O- X. X7 @3 d& [
8 T! |8 t) y* `# Y# T; R* m  q- I# G

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-26 04:24 , Processed in 0.072900 second(s), 20 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵