a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 164|回复: 2

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

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
Fedora/Redhat 在线安装更新软件包(4)的文章。感谢广大考生对考试百科的一致关注和支持,希望此文章会对广大考生有所帮助。希望广大考生继续支持考试百科,Linux认证专题:Fedora/Redhat 在线安装更新软件包(4)的具体内容如下:   代码:[root@localhost beinan]# yum update firefox9 l$ |- V* S2 b( T! {
  Setting up Update Process- K* j  Y6 P8 b' G0 s
  Setting up repositories
+ F* `) N- ~) \( a: V2 P  updates-released 100% |=========================| 951 B 00:00
  a  {1 j: ^8 _8 {6 L  extras 100% |=========================| 1.1 kB 00:00
% l5 U2 U+ h, h; H- b+ \. Q  base 100% |=========================| 1.1 kB 00:03
0 f( o( O3 \, e) I  i; V$ ^$ w  freshrpms 100% |=========================| 951 B 00:02" @7 J7 U; W+ W/ V5 G7 S
  Reading repository metadata in from local files* F, J5 r6 n# S4 `6 B
  Resolving Dependencies9 l7 L5 D$ z, F+ q
  --> Populating transaction set with selected packages. Please wait.
! I5 A5 |* `& ~) f7 b7 i  ---> Package firefox.i386 0:1.0.6-1.1.fc4 set to be updated
  ^- u/ @$ P" }  --> Running transaction check7 r- c+ M! k3 ?6 Q3 f$ v/ H
  Dependencies Resolved
' k6 v" _# d; v- o7 Z$ N$ w  =============================================================================
. h, D( n" a  t1 ^. u$ \  Package Arch Version Repository Size% z1 I% ?, m" y  W& c
  =================================================================
回复

使用道具 举报

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

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

============ 6 D3 A% ~  Q- q
  Updating:
( j" y5 y* H5 E  q; w  firefox i386 1.0.6-1.1.fc4 updates-released 18 M) F9 I. {" c& Y0 J4 U
  Transaction Summary
: _# f  b2 [- P, K! g  =============================================================================9 H1 ?$ ~3 ~" P) v" U# r
  Install 0 Package(s)
) G& F5 N5 |& b$ `! D% h  Update 1 Package(s)
8 ^! a  \6 a7 {% r  Remove 0 Package(s)6 p- t* h9 z/ x; W+ ?; _
  Total download size: 18 M  `8 c( {8 S) X. `' U
  Is this ok [y/N]:如果不加参数的 update 会是什么呢??: b9 D2 N1 b. P* [
  [root@localhost beinan]# yum update/ ?8 X5 M( V. x- c
  试着运行一下看看?会好长时间,对系统进行全面更新,我们要进行y和N了。
; R6 N) k" {$ @0 P  3.移除软件包要用到remove参数;比如;, U( j, O! f, k; x
  [root@localhost beinan]# yum remove bmp-mp3
$ c7 Y4 K8 a, m; Q6 h& Z) M$ z# U  代码:* s; p8 L! b3 [
  [root@localhost beinan]# yum remove bmp-mp39 N) I* d" Q. P3 x- B2 q$ H8 s
  Setting up Remove Process- B7 l: J& I6 D6 F' \3 P  r# U; B+ X
  Resolving Dependencies
) Q" ~8 z5 o; W3 Q  --> Populating transaction set with selected packages. Please wait.
5 n2 g4 a. v* C, B  ---> Package bmp-mp3.i386 0:0.9.7-1.2.fc4 set to be erased
3 Z! d# u& d; G: z- ?  --> Running transaction check
5 ?; v& T9 P0 ~  Dependencies Resolved
5 w& w; E8 B& l7 ~+ }+ ]6 p  =============================================================================
3 l7 v0 c" q: _+ x  Package Arch Version Repository Size
! n) ^( d, l" J  =============================================================================3 u4 n4 i& h( l+ h) ^4 A5 N8 ^
  Removing:
+ `7 j$ @( h/ o" Q1 N' \2 p& Y# ?  bmp-mp3 i3
回复 支持 反对

使用道具 举报

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

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

86 0.9.7-1.2.fc4 installed 234 k
8 @5 S) c7 W3 v5 S! M# E% q4 w  Transaction Summary
3 {, N' D4 L$ ^) q1 Q( j  =============================================================================
8 P/ t. q# Y+ v- `+ C* e) ?  Install 0 Package(s)
) a% v( c+ M' E% n: B) @6 S  Update 0 Package(s): m. o, f- X5 t: G
  Remove 1 Package(s)
, O' y# y2 H3 K2 F: a  Total download size: 0+ G( J4 ^% {6 g# d! ]% i# p
  Is this ok [y/N]:按y就移除了;6 k' `. V9 U. Z: E  A
  三、yum的帮助;
7 _2 A; B. o1 M  在论坛中有好多,有兴趣的弟兄自己找找看吧;但也不要忘记了自救;呵。。。。
" v( p  A: }  P: o  代码:[root@localhost beinan]# yum --help
1 y( X" ]6 w7 f2 E! d3 Q* H  Usage: yum [options]7 s' N6 Z( e. l6 G
  Options:' j. m% D1 d! Q
  -c [config file] - specify the config file to use
& m" r# S; w* j1 Y  -e [error level] - set the error logging level$ v& K% x1 c! \. `3 I- S. |
  -d [debug level] - set the debugging level0 N( H* D8 |8 f- y
  -y - answer yes to all questions2 _( d- Q* D: S. ?" ?8 d
  -R [time in minutes] - set the max amount of time to randomly run in2 n3 R" N* Y, M$ {' B  j
  -C run from cache only - do not update the cache
( g1 ?4 C: v: M; W* F  --installroot=[path] - set the install root (default '/')
$ k& B, b  A3 U/ ]# k  --version - output the version of yum4 T0 a* g/ `$ p5 Y7 v$ |
  --exclude=package to exclude
, d; {  k8 q) R8 J, K& M& c  --disablerepo=repository id to disable (overrides config file)3 X8 T8 {4 v( r
  --enablerepo=repository id to enable (overrides config file)% q6 f: y1 S# h( B, t  D! q
  -h, --help - this screen还有更厉害的帮助 ;
  a. Y; _/ s' u+ N% ~5 G- [4 {
' Q3 X( e% `  o6 l% x  [root@localhost beinan]#man yum
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 08:45 , Processed in 0.237994 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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