升级CentOS的版本

来源:互联网 发布:凸包 最快算法 编辑:程序博客网 时间:2024/04/28 02:24

升级CentOS的版本

1、通过yum安装

yum update -y



2、查看版本

安装版本查看工具

yum install redhat-lsb -y

执行查看命令

lsb_release -a

显示版本信息

LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID: CentOSDescription:    CentOS release 6.7 (Final)Release:        6.7Codename:       FinalYou have new mail in /var/spool/mail/root



3、查看版本的另一种方法

cat /etc/redhat-release

显示版本信息

CentOS release 6.7 (Final)



1 0
原创粉丝点击