搭建局域网CentOS Yum服务器(4)

六、
Yum服务器上,关闭防火墙及SELinux。
(一般情况下,企业里,都是关的,倘若不关,只能说是运气不好,以置出了上述报错,此所谓运气不好也~)
 
 
七、
再到客户端进行操作,一切顺利。
客户端可以通过yum命令从服务器端下载并安装软件了
[root@ ~]# yum install mc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mc.i386 1:4.6.1a-35.el5 set to be updated
--> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
 Package      Arch           Version                     Repository        Size
================================================================================
Installing:
 mc           i386           1:4.6.1a-35.el5             addons           2.1 M
 
Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)
 
Total download size: 2.1 M
Is this ok [y/N]: y
Downloading Packages:
mc-4.6.1a-35.el5.i386.rpm                                | 2.1 MB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mc                                                       1/1
 
Installed:
  mc.i386 1:4.6.1a-35.el5                                                      
 
Complete!
 
运行yum udpate命令,即可将客户端升级为CentOS 5.8
[root@ ~]#yum update
 
注:客户端CentOS 5.7升级完成后,内核由kernel-2.6.18-274升级到了kernel-2.6.18-308,客户端需要重启才能使用新的内核,重启后可使用yum remove kernel*274*命令将原内核删除。
查看系统安装的内核
# rpm -qa | grep kernel
查看系统当前用到的内核的版本号
# more /proc/version

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/75ef71cb05f60318bbf917cac07c2883.html