a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 179|回复: 3

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

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
 比如我们用的机器是单处理器的X86机,想看一下是否有新内核可用。所以咱们试一下下面的这个。看是否已经有了新内核可以升级的;   [root@localhost beinan]# yum info kernel.i6869 n. w; A2 x" v) C
  代码:[root@localhost beinan]# yum info kernel.i686
" B3 {  G3 C, g3 g7 H+ Q# Y# o  Setting up repositories
3 A- ]# U. I0 |8 U" \5 R3 O6 y" \  updates-released 100% |=========================| 951 B 00:00
9 Q8 f  u" `& n2 {5 U  extras 100% |=========================| 1.1 kB 00:00( U0 l- G# ^" v" r0 H3 b
  base 100% |=========================| 1.1 kB 00:00
( h) H$ X8 y: |7 g5 i' W  freshrpms 100% |=========================| 951 B 00:00' ?3 D# n8 J8 b4 t4 a7 B3 b
  Reading repository metadata in from local files
  u. V  c7 z- E0 d% `0 r6 s5 ?  Installed Packages
. |: V9 l' @# [% L  Name : kernel
5 P3 f8 h* @9 k& l: X0 {! X9 m0 j% z  Arch : i6869 P' w* I3 d: H) r7 \9 p  M
  Version: 2.6.11( q/ l& }, L- y7 b
  Release: 1.1369_FC4; B4 C* U9 F6 C( v  _, ^3 Q8 p' P4 W
  Size : 37 M
$ v2 t; w' e* y3 i% i  \% [4 c  c  Repo : installed
" {  [0 n: f' t9 C3 l9 O  Summary: Linux 内核操作系统的核心)。
9 f* Q! x( ]) N' t  Description:5 F5 v# l. b0 ?) R8 K  t
  kernel 软件包包含 Linux 内核 (vmlinuz),Red Hat Linux3 O7 ^- x- I  w0 I1 Q
  操作系统的核心。内核处理操作系统的基本功能:
( p! j, @6 W2 u, u0 e6 d4 o2 ^% A  分配内存、处理分配、设备的输入和输出等等。! H$ N0 f7 F4 e* O1 }  c$ |
  Available Packages& k& n0 ^& N8 k3 t( J2 U
  Name : kernel
( Y; B6 b+ Y  [  Arch : i686/ j& ^$ i' G* V4 y8 G# y) t) {
  Version: 2.6.12" C* l% H# R  e4 q- h
  Release: 1.1398_FC49 y: n6 j7 D3 W* {
  Size : 14 M
7 c1 [0 m: i. j& b6 z, v' H  Repo : updates-released
+ g7 p- k  l! z/ f" k: R  Summary: The Linux kernel (t
回复

使用道具 举报

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

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

he core of the Linux operating system) ) n# U1 w7 i2 _' ]* z, G' g. X! j
  Description:$ b; X" h& j, M% a; R8 x4 c( [
  The kernel package contains the Linux kernel (vmlinuz), the core of any
* X$ m* B/ O: E/ _% S  Linux operating system. The kernel handles the basic functions
. G1 k" b* \+ k2 O8 m  of the operating system: memory allocation, process allocation, device
& F% c  l7 |" x0 [) {0 [5 |  input and output, etc.通过上面的信息,我们可以看到 2.6.11的是已经安装了,因为已经显示的是Repo : installed ,下面还有一个Version: 2.6.12 ,告诉我们是Repo : updates-released,看来这个是升级用的了。/ ]$ P# F& \& b0 C
  所以是否升级就看我们的了。
- B  g2 q. k7 M9 Z  [root@localhost beinan]# yum update kernel! B* O. |+ }* K+ S) Q
  代码:[root@localhost beinan]# yum update kernel6 h5 Z' Y5 e* B! d9 k* a
  Setting up Upgrade Process1 l+ E0 V2 H8 g; y' |  a/ Y6 n2 R
  Setting up repositories
2 J. x; Y9 u9 u& c, Z) M  updates-released 100% |=========================| 951 B 00:00
6 E' R8 B9 U/ B- w& t. S  extras 100% |=========================| 1.1 kB 00:007 X' O! m8 x( i
  base 100% |=========================| 1.1 kB 00:00
, u4 ]4 _) Z. k, Q+ E+ Y# z  freshrpms 100% |=========================| 951 B 00:00& l! O% \; y$ A" V6 A% G
  Reading repository metadata in from local files
9 Y' n: s9 L8 g* a  O  Z  Resolving Dependencies- b8 R6 x* K8 f; X8 Q+ K) \
  --> Populating transaction set with selected packages. Please wait.
* j; x: L+ ~! c: }% ?, d1 Z# H3 m  ---> Downloading header for kernel
回复 支持 反对

使用道具 举报

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

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

to pack into transaction set. 6 a' |' B6 K& y
  kernel-2.6.12-1.1398_FC4. 100% |=========================| 174 kB 00:18
0 E/ A  ^) f: _# E8 J7 g  ---> Package kernel.i686 0:2.6.12-1.1398_FC4 set to be installed
$ ?( S) c, T, a/ q, X  --> Running transaction check
" b# ~$ d# b; W8 g  Dependencies Resolved) Z$ {& A, ^0 V; U) B9 I
  ============================================================Package Arch Version Repository Size( r; L; r  c! |. J+ F% E* R
  =============================================================================* @' `! k8 Q& i/ _
  Installing:5 v* c  I4 f! m6 I+ y  O
  kernel i686 2.6.12-1.1398_FC4 updates-released 14 M) h) R" a! w* T% ]8 _
  Transaction Summary7 {9 A* h( c* ^1 T# h9 A- ^
  =============================================================================
& L( Y3 G- a& p8 b. \; w8 X( @5 u  Install 1 Package(s)
4 V" H8 M  j+ f- M  Update 0 Package(s): Q  H$ q5 b5 k. w
  Remove 0 Package(s)5 B' Z# `: j$ t. e
  Total download size: 14 M
4 H. q6 L# Q0 t- [6 {  Is this ok [y/N]:是不是升级,只需要在 Is this ok [y/N]:行的后面输入y或者N;y是yes,就是点头同意的意思;N就是摇头No的意思。- o0 a- x$ `' Q- N) b4 B! o: {2 v
  对于软件包的查询,还有,比如:
4 d; V" D1 O+ Q9 o3 Q  {* P+ N  #yum list available 列出所有升级源上的包;
$ [% O$ B) U" G2 N5 ?  #yum list updates 列出所有升级源上的可以更新包;
! K& w) G: Z1 j( ~  #yum list installed 列出已经安装的包;
1 G' Z$ @- |2 P9 ~( y  n  yum 的命令支持通配符; 比如;7 Z! b$ X3 S+ \; P. a" i' s
  代码:[root@localhost beinan]# yum list mp* |more
8 D- Q0 F7 Z( v  f2 ^  Setting up repositories* [# d; n2 y- M+ K0 W& Y
  Readi
回复 支持 反对

使用道具 举报

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

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

ng repository metadata in from local files 1 [3 e- t3 ~6 ^/ }! W: ~" E
  Installed Packages' n6 }; s$ e$ {, S
  mpage.i386 2.5.4-5 installed+ D2 ]3 ~& v. y
  Available Packages+ r" k0 E0 b- q; I8 ]; y9 c
  mpc.i386 0.11.2-3 extras- a. i+ [6 P- W4 M) a3 ?
  mpeg2dec.i386 0.4.0-5b.2.fc4 freshrpms) h: ]7 t( a2 s0 N; x9 h
  mpeg2dec-devel.i386 0.4.0-5b.2.fc4 freshrpms2 E+ ^  [! i& ]5 E1 X( y
  mpg321.i386 0.2.10-6.2.fc4 freshrpms
- N' E' S1 e7 D2 z  mplayer.i386 1.0-0.16.pre7.2.fc4 freshrpms
& E$ `- t- M; r) ^' m& \  mplayer-docs.i386 1.0-0.16.pre7.2.fc4 freshrpms% N  |8 x  w; Y
  mplayer-fonts.noarch 1.1-3.fc freshrpms
0 l6 f  C3 V' a* v" g* l  mplayer-skins.noarch 1.7-1.fc freshrpms
, D' f1 V7 E5 W: w% m: @  [root@localhost beinan]#2.安装和升级软件包;
- Q" t; D/ h- Y, u& B$ w  安装和升级分别是 install 和 update 参数;比如;/ {% S; {: W- [7 y9 Y7 o4 q
  [root@localhost beinan]# yum update firefox* o$ f! d3 U0 V. M' H+ Y
  这样我们就可以升级 firefox了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-27 06:49 , Processed in 0.159896 second(s), 27 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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