52AV璈A|52AV.ONE

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

[linux隞也 yum 貉牧

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-2 15:41:09 | 芰閰脖 撣 |摨閬 |梯璅∪
銝yum蝘駁方摰鋆
3 T7 S( N* R: |! O1.亥岷臬行摰鋆yum
+ `( L5 g9 J8 A6 J4 B1 B- n% g
. E8 p9 S) D+ G4 Q1 `  t
  1. [root@localhost ~]#  rpm -qa | grep yum) J& ]. e% N& P1 ]. H7 j0 e
  2. yum-metadata-parser-1.1.2-3.el5.centos
    . o; ]7 e7 r8 a
  3. yum-3.2.22-33.el5.centos
    1 l/ `* Y3 L; H
  4. yum-fastestmirror-1.1.16-14.el5.centos.12 u, m, E% _3 Q
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

$ z% z2 v. B5 |3 F% }6 ~
2.蝘駁巾um (蝘駁斤孵拍車銝喳)
9 S) d, m% y# t. u' D, l9 N) d: a2.1肘um孵蝘駁
8 {+ j8 P0 a, c: L# ]  W
  1. [root@localhost ~]#  yum remove yum*
銴鋆賭誨蝣

0 _% z% D1 q# O: n! c
2.2禿pm -e孵蝘駁9 O0 I; F' W5 a
#亦鈭yum瑼獢閬蝘駁斤
% x4 S9 n+ K& R
  1. [root@localhost ~]#  rpm -qa | grep yum& z0 l! A0 X0 l# y, Q+ N3 C" L
  2. yum-metadata-parser-1.1.2-3.el5.centos
    , k, I, Z& A- @9 e5 d& P" @, E
  3. yum-3.2.22-33.el5.centos! ?/ A  n8 v  M
  4. yum-fastestmirror-1.1.16-14.el5.centos.1" e7 N$ N# v0 ]% d$ c$ g" l$ q
  5. yum-updatesd-0.9-2.el5
銴鋆賭誨蝣

+ ^" }. ^, o% `8 T' m% e! F8 ?
#蝘駁巾um憒閬敹賜亦訾抒憿,臭蝙 --nodeps 賊
" r2 W$ i+ e5 \0 k3 j: g$ d
  1. [root@localhost ~]# rpm -e yum-metadata-parser-1.1.2-3.el5.centos
    5 S5 x9 r5 L9 {2 X6 b7 e; \
  2. [root@localhost ~]# rpm -e yum-3.2.22-33.el5.centos
    5 T2 w0 B+ i6 ]! T1 d
  3. [root@localhost ~]# rpm -e yum-fastestmirror-1.1.16-14.el5.centos.1
    7 L1 i: p7 d+ U1 Y6 l" n2 i  S! N* c" w
  4. [root@localhost ~]# rpm -e yum-updatesd-0.9-2.el5
銴鋆賭誨蝣
" _+ O" f, ~5 F$ M
鈭摰鋆yum
% `( W& m  n) q8 @8 ]1.摰鋆皞/ P* j# i0 ?7 T. L4 Q
典鋆皞其遢臭誑唬誑銝蝬脣亦% Q: {3 `$ U: v+ O" j% u+ M
隢靘芾閬曉啣鋆皞; ?, A( f! w% d3 f( n0 k' c6 P
i386 : 2 T6 M. h! g5 ^( Y2 ?2 q9 T/ _
http://mirrors.sohu.com/centos/5/os/i386/CentOS/4 u8 D; o7 q8 b' h+ C
http://mirror.centos.org/centos-5/5/os/i386/CentOS/
* i2 Z  ^  P% q. O; r
8 h+ s2 \8 j' s. rx86_64 :   D; v. G: S  v! p6 ?" d
http://mirrors.sohu.com/centos/5/os/x86_64/CentOS/$ q# d1 P  f5 y7 ^( T
http://mirror.centos.org/centos-5/5/os/x86_64/CentOS/' |+ h/ L( B0 @6 U! w; _: V/ {& c

! X0 I7 f, k# p* W" V6 A) ]7 f5 U9 W) R2 q7 e
肘um其遢銝餉臭蝙典唬誑銝4瑼
7 X1 o0 B% q7 C1 zyum-metadata-parser-1.1.2-3.el5.centos.i386.rpm          G6 _$ \6 Z# [% O1 W5 a% _
yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
1 H; p+ h1 n6 @9 Z/ Q% k, Wyum-3.2.22-37.el5.centos.noarch.rpm0 \+ V/ P4 `9 K% l& l- d$ h
yum-updatesd-0.9-2.el5.noarch.rpm
. ?% }; H8 d8 V
# P; ^' B  O+ H1 ^) q2摰鋆yum
3 S* y& `/ {8 s7 `0 p; g8 O8 _# ei386
1 L7 M+ ?2 Q! M
  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
    ' P7 F: x! F- z% I
  2. [root@localhost ~]# rpm -qa |grep yum
    / _* |9 h& B& D8 W* T9 g" }. I4 c
  3. yum-updatesd-0.9-2.el5
    . X% s: `/ n9 t( W
  4. yum-metadata-parser-1.1.2-3.el5.centos
    2 b( C4 r- t% x9 U+ c
  5. yum-fastestmirror-1.1.16-16.el5.centos
    / `0 b9 u6 ?2 p: u
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣
. K$ Y6 j3 Y) T2 ^* R/ x3 j
x86_64
& q* ?" b( M& {# N* [4 }
  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 ) p4 z3 x0 N) u8 n
  2. [root@localhost ~]# rpm -qa |grep yum
    5 y& \% P8 O6 k( t& S
  3. yum-updatesd-0.9-2.el5
    % |* p5 H* v' _3 }$ }- ~  J# h
  4. yum-metadata-parser-1.1.2-3.el5.centos
    & E+ g, f# O, J/ o% H, h
  5. yum-fastestmirror-1.1.16-16.el5.centos$ n5 R. C. R; v/ j5 L2 I7 N& W
  6. yum-3.2.22-37.el5.centos
銴鋆賭誨蝣
' p3 O* w; F( e9 K$ R
2.2湔唳撌脣鋆憟隞(靘鈭粹瘙臬行湔)
4 U- ^* B* [- ]2 k; X: v' b
  1. [root@localhost ~]#  yum -y update
銴鋆賭誨蝣

+ D# w! d# ^3 \4 T0 p: d
銝yum隞方牧% c8 k2 \5 S9 {4 Y  W
其蝙肘um嚗撠銝頛梯正嚗摮曉/var/cache/yum桅銝8 k6 ?0 C  D1 }+ A( \9 j
1.yum湔
/ [9 E6 J# _0 B3 [- i) E5 c6 H% Xyum check-update 2 l+ A: O# Q! o7 a
#瑼X亥賣湔啁憟隞嗆鈭2 S; c$ P+ {! P# q8 w* k; F
; R( S; Z8 B$ L3 k$ X
yum update
! c# ^- Q1 E# I. w" }9 P#湔唳撌脣鋆憟隞塚亙罕pdate敺X乩憟隞嗅蝔梁閰勗舫撠閰脣隞嗆湔9 Y" _3 g/ g# X8 U# E8 m* g: l
憒yum update httpd& C" q8 W2 _$ a6 Q1 h. q

* _. }" x) _5 E9 vyum upgrade
  g8 r3 U6 h0 p' |- Y#質update撌桐憭嚗撌桀亙冽慶um upgrade銝鈭喳瘣格掠憟隞嗡銝韏瑟湔堆憭批雿輻典函砍蝝
3 Z+ v! c4 y! ^6 O2 m% O8 ?! f8 }' D  t+ Z9 a0 ?
1.1摰鋆.蝘駁文隞" Y: e% l3 l4 e5 t3 A0 P
yum install " S" X' l" Y" B0 y' u
#摰鋆憟隞塚install敺X亥摰鋆憟隞嗅蝔梧憒yum install httpd亥賊銝韏瑕鋆閰勗臬冽敺銝*憒yum install httpd*
; R. i! y& o' ^( r* Q( H4 A$ g  S. H/ W2 o1 G6 _( ^
yum --enablerepo=(Repository) install 摰鋆芯蝙冽憟隞嗅澈,憒憭,銋臭誑,亦/etc/yum.repos.d/鈭.repo- N2 U  R7 e" u; T5 n
憒yum --enablerepo remi,remi-php55 install php
% d+ @  B# d) p- N! P, M/ Z) l$ {( z& E2 e2 `
yum reinstall啣鋆憟隞
5 [2 @9 @- P, C7 A% \
" p5 {0 J* j2 t6 u3 ]9 B! pyum remove
- A+ d, [2 _. v* e#蝘駁文隞,券桀啁訾抒憿嚗臭誑yum deplist 曉箸訾憟隞,銝銝蝘駁支閬憟隞,頝喲閬靽憟隞,憒祉典隞(蝝憟隞嗅航賣典) , Q5 p- q. x4 [! R3 H% G

* V( k' i: R7 w* R靘憒:6 }# o# `$ b- W  o0 o( h1 Y+ ^
yum deplist httpd | grep -v httpd | grep provider | awk '{print $2}' | sort -u5 }' G& R0 S! q4 \' r1 d, A
remove敺舀亥蝘駁文隞嗅蝔梧憒yum remove httpd亥賊憟隞嗡銝韏瑞宏斤閰勗臬冽敺銝*憒yum remove httpd*
4 c3 V& ^0 R: v. S. D7 m
8 X; @2 I% [, @$ {- \' ~& D4 i/ Yyum clean1 l+ j+ q5 d1 A+ a) B- B0 D
#皜文鋆銝頛怠憟隞嗅憪瑼嚗憭批臬曉/var/cache/yum嚗撣豢銝yum clean packages砰um clean all嚗銝甈∪典芷扎6 K/ v, D1 }8 [
: V  P5 X: L% @8 s( u
1.2皜怠$ {5 g& a1 C# R+ d# r1 x0 p
yum clean% P. p& z. y; {3 u6 g7 y" q
#皜文鋆銝頛怠隞嗅憪瑼嚗憭批臬曉/var/cache/yum
$ I; W7 `$ `: E1 y- G) N/ ~  j6 s. l+ n
yum clean packages
2 u, j# N, @1 Q#其皜斗怠(/var/cache/yum)桅銝憟隞
4 F, B' o# M0 _1 I( G
( |: h; v7 w- E- t/ uyum clean headers
4 O7 ^. W4 I6 T; ]7 A& m% n3 J& a# n#其皜斗怠(/var/cache/yum)桅銝 headers/ _' d; J0 I* f% u8 F9 p* x

3 G# I0 W3 x8 jyum clean oldheaders8 z- ~/ [* v6 a; G6 {* I7 c
#其皜斗怠(/var/cache/yum)桅銝 oldheaders * ^8 D' q- g. {; s8 m

! X, a* d3 S! y; ?+ ?7 ?  ryum clearn all
9 ^/ Z& _9 f, ]% `2 e/ H#湔交怠賭甈⊥扎4 z7 g% k6 r& M8 l! b) D- M: s

( I- |. z6 {+ n1.3皜$ u, i8 F  U7 h" Z6 U/ s
yum list
$ {! Y; n' C% w% i# r$ O#箸Repository摨憟隞塚亙甸ist敺X亙隞嗅蝔梧臬桃典箄府憟隞嗚7 E& u5 q! p5 A# O

: E' K; z$ j; M, v1 q  S5 w; Kyum list updates! b" l; Q. G* _. Q) H
#箸臭誑湔啁憟隞
7 A' v9 i! I) y& m0 i* J7 j
* i; @. I8 M4 e2 `4 r: Uyum list installed4 h) j( d  w0 l: ?8 K; O  P) f( l
#箸撌脩摰鋆憟隞, |% l1 Z# R, ~# q

9 ?$ Y& F8 t; w9 f! p# N- Lyum list extra
* l9 v/ ^: Q2 K#箸撌脣鋆雿銝 yum Repository摨 抒憟隞
# S7 H9 a6 a, _& n1 o
% S) H) p1 C3 j" Q- n+ p- m1.4箏隞嗥賊鞈閮" ?$ E! \( R6 _! t
yum info8 o4 B" V$ O& n
#箸憟隞嗥賊鞈閮嚗亙甬nfo敺乩憟隞嗅蝔梧臬桃典箄府憟隞嗥賊鞈閮
9 K0 \' M! ~% I7 G) l' @. {憒yum info httpd yum info httpd*嚗撌桀亙冽潭*隞去ttpd剔賢箔
7 A4 C$ J2 R& D) Q. u2 s
; a: m9 E) h5 G6 p; Ayum info updates
7 {% O- g% a4 w0 I; g- c% P#箸臭誑湔啁憟隞嗉閮
8 B# b6 M9 i& Y& @$ ^* o2 p% y0 M- `, q2 ~- J; g7 D' f" L
yum info installed
5 b$ U) _' P" l0 R9 U3 J" P# n#箸撌脣鋆憟隞嗉閮7 X& B* H* S9 f) R$ k
' b$ g" Y, w% R) p6 }
yum info extras
8 T0 Z  Z3 ^8 |. q, [#箸撌脣鋆雿銝 Yum Repository摨 抒憟隞嗉閮
7 p" T  w$ L  o* Q
7 J- R; f0 m8 e/ C$ c3 ]( e  ?( P. O- u( q
1.5撠9 Y6 }+ O, G" r; L
yum search7 ~' K( K) u/ \0 ]% l( e3 B
#撠賊憟隞塚憒yum search httpd嚗典銝剜曉唳閬憟隞嗚憿隡潮萄券
9 C- v9 T$ \% h" H
5 l4 b, {. G! `( T+ f蝝憟隞嗡銝kernel  D8 D- A* I' y- X; A
憒唾肘um靘蝝憟隞塚雿銝喳逃ernel閰晞隢銝W瘜
# ?5 Q& w, r+ H6 ~[root@localhost ~]# vim /etc/yum.conf
& h% j) F8 N- g7 g" o8 b#沍main]嗡葉乩W銝+ i9 x4 b/ H8 Z
exclude=kernel kernel-source
  C! P, l2 b% `
) E" Q  X3 {6 v! ^. y' [1 M嗉牧yum冽敺憭嚗雿臭砍虜函憭扳撠望臬鋆湔啣蝘駁扎拐蝑典唳亦撠勗臭誑鈭
; F7 `3 s) P) {  l4 O- s6 `
% F0 m4 F& X) e7 M3 H

( h: F; U. K, ~, `5 |yum撣貉憿臭誑摰蝬脩閫蝑
4 J$ K0 B6 D0 khttp://yum.baseurl.org/wiki/Faq
2 h; V  |4 q* r. X8 N
9 @: D% ^' {! M9 X  z

3 q5 Y; _; z8 [2 v閮: 甇斤 http://ithelp.ithome.com.tw/question/10077313
$ n  V2 L1 I  ^* Z- [: d: S) `& _8 _, E; h
- x$ T/ k2 j0 K! U2 m3 u7 k

( U3 D% V5 d$ W' z9 D3 {- B+ z5 N) I' o5 n1 g& c
1 [  q# m$ R  j) v: f- r; j

8 B* }' s  K" g
6 Y5 I& ^/ x- m& G* p- D" A' L; i% c$ \$ @: P9 G5 r

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-21 21:04 , Processed in 0.079133 second(s), 18 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵