a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 167|回复: 2

[红帽认证] 红帽linux认证:Fedora/Redhat在线安装更新软件包(4)

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
Fedora/Redhat 在线安装更新软件包(4)的文章。感谢广大考生对考试百科的一致关注和支持,希望此文章会对广大考生有所帮助。希望广大考生继续支持考试百科,Linux认证专题:Fedora/Redhat 在线安装更新软件包(4)的具体内容如下:   代码:[root@localhost beinan]# yum update firefox6 v: F6 C2 O7 J: ?' J" y. Z+ C
  Setting up Update Process
# I- f( K& i- u/ b( C  W! x  Setting up repositories/ r9 q4 [' f; o  h- g/ @, N
  updates-released 100% |=========================| 951 B 00:000 {" d) I. K% A1 Y% _! I1 Y
  extras 100% |=========================| 1.1 kB 00:00
* r1 D' I9 |+ E; c& n  }  base 100% |=========================| 1.1 kB 00:03, _- x' h4 J3 @
  freshrpms 100% |=========================| 951 B 00:02
! p5 F$ O; {- v1 l1 m, M" {  Reading repository metadata in from local files
+ k4 w3 q9 ]1 V( L) V5 z: y; \  Resolving Dependencies: D. I! C! }" v2 n$ w
  --> Populating transaction set with selected packages. Please wait.
- c: ^9 I8 i( Z( [& w7 v  ---> Package firefox.i386 0:1.0.6-1.1.fc4 set to be updated
6 k. ~9 Q+ M) |7 d2 T  --> Running transaction check) p/ B  n0 C6 }+ t7 ]+ z2 B
  Dependencies Resolved. o6 h3 }) {5 Y, W, C
  =============================================================================
, @5 E' u2 ?1 H: z: G  Package Arch Version Repository Size
3 ?$ [# s9 e0 a# x* _. E  =================================================================
回复

使用道具 举报

 楼主| 发表于 2012-8-4 12:19:51 | 显示全部楼层

红帽linux认证:Fedora/Redhat在线安装更新软件包(4)

============
( b, }7 s" H+ ~  Updating:/ i* m' @2 a' W, o
  firefox i386 1.0.6-1.1.fc4 updates-released 18 M
& v  B8 M' I, u  Transaction Summary
( q4 L! c" J- x9 {) O  =============================================================================
( \7 @2 Z7 _. _; }. D, [  Install 0 Package(s)
7 M- z: ~9 D: N5 `, `( \  Update 1 Package(s)
% E, L7 n+ D% ~& P0 n3 E  Remove 0 Package(s)
- U2 R- G- W% j8 T6 s2 v; w  Total download size: 18 M
" z1 I1 }1 S4 E7 x) e2 P  Is this ok [y/N]:如果不加参数的 update 会是什么呢??3 h% {! f5 X4 g3 S. R3 n, [
  [root@localhost beinan]# yum update
7 _5 g4 _% t# I# I  试着运行一下看看?会好长时间,对系统进行全面更新,我们要进行y和N了。
8 E& ]6 _- t1 P- t+ I- \  3.移除软件包要用到remove参数;比如;; v7 f+ g3 Y2 o% J
  [root@localhost beinan]# yum remove bmp-mp37 a7 [+ [! L4 ^' z, X, g: x
  代码:
$ D3 p2 S2 z' Y. [7 i/ ]  [root@localhost beinan]# yum remove bmp-mp3, r+ s  z5 J2 Q+ D
  Setting up Remove Process) E' g! [2 `! s
  Resolving Dependencies8 k7 r% ?( ^, c0 X4 E3 C3 `
  --> Populating transaction set with selected packages. Please wait.
) S  `1 a( X: n# g  ---> Package bmp-mp3.i386 0:0.9.7-1.2.fc4 set to be erased6 ?' X3 g' U5 ]- \0 v/ M  V" Z% l
  --> Running transaction check) M) \( p" {: M  @/ \2 [& h; j* h
  Dependencies Resolved
; t" V- V; E8 ?) I- }& r  =============================================================================2 f! O  A+ R9 e5 D
  Package Arch Version Repository Size
" E* y9 g4 l4 U0 G  =============================================================================; a7 D) F/ u5 R$ K  Z: c3 o* K
  Removing:$ z8 K9 Z4 E; L2 U3 ^; Z$ u
  bmp-mp3 i3
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-4 12:19:52 | 显示全部楼层

红帽linux认证:Fedora/Redhat在线安装更新软件包(4)

86 0.9.7-1.2.fc4 installed 234 k
/ e; j$ G! ~% O  Transaction Summary
: F+ i# C) V3 T1 @  =============================================================================6 Q  }5 V& k. V4 n; U8 @, h  R
  Install 0 Package(s)
; M' V9 E) D" B" x2 b  Update 0 Package(s)
4 o0 g) J/ M7 X1 Z0 b& W0 n  Remove 1 Package(s)( q/ H# v8 [. b4 c* g
  Total download size: 0+ D: F, L9 v2 v  l* ?. ]) D+ \
  Is this ok [y/N]:按y就移除了;
  H* X% ]2 l2 K9 F7 v% r  三、yum的帮助;
4 {  e& E4 ?8 l* {! _: Q  在论坛中有好多,有兴趣的弟兄自己找找看吧;但也不要忘记了自救;呵。。。。+ a2 P' ~5 W$ v" F& W7 m; s
  代码:[root@localhost beinan]# yum --help6 ]$ v% n7 C1 u  F
  Usage: yum [options]; i  \9 a4 R6 I2 O1 K3 T+ ~
  Options:0 L- n& N& Q5 z6 C% {
  -c [config file] - specify the config file to use1 S2 S, Z8 p5 v
  -e [error level] - set the error logging level
# [: N6 k1 \5 f1 ~" X  -d [debug level] - set the debugging level
5 N9 U% }* `' e3 D- q5 O  -y - answer yes to all questions  \$ S# B/ ]) f: ^/ P% s+ g
  -R [time in minutes] - set the max amount of time to randomly run in
7 j1 Z% Q" `) P  \  -C run from cache only - do not update the cache2 G# _& a% j3 ?$ ^
  --installroot=[path] - set the install root (default '/')
$ X/ Q4 m3 u7 u4 u1 t  --version - output the version of yum. q' e8 M& R8 U; h" b! t/ h
  --exclude=package to exclude
7 |. N+ B/ M" t  --disablerepo=repository id to disable (overrides config file); ]% \: X8 _5 u$ S
  --enablerepo=repository id to enable (overrides config file)
& [* O/ S$ o0 q/ I  -h, --help - this screen还有更厉害的帮助 ;
( `2 i- l! c! t) i
/ G+ P& p2 r+ Y2 i  [root@localhost beinan]#man yum
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-29 11:25 , Processed in 0.311109 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表