• 自己电脑上的系统还是 CentOS7.2,服务器是 CentOS7.3, 打算统统升级到最新版

  • 升级前查看

    > lsb_release -a
    
    LSB Version:	:core-4.1-amd64:core-4.1-noarch
    Distributor ID:	CentOS
    Description:	CentOS Linux release 7.3.1611 (Core)
    Release:	7.3.1611
    Codename:	Core
    
  • 升级命令(需要 root 权限)

    yum clean all
    yum update
    
  • 升级后查看

    > lsb_release -a
    
    LSB Version:	:core-4.1-amd64:core-4.1-noarch
    Distributor ID:	CentOS
    Description:	CentOS Linux release 7.4.1708 (Core)
    Release:	7.4.1708
    Codename:	Core