如何检查CentOS版本– 8种方法

There are many ways to check the CentOS version. In this tutorial, we will learn how to check the CentOS version through eight different utilities.

有很多方法可以检查CentOS版本。 在本教程中,我们将学习如何通过八个不同的实用程序来检查CentOS版本。

检查CentOS版本的8种方法 (8 Ways to Check CentOS Version)

  1. /etc/centos-release file

    / etc / centos-release文件
  2. /etc/system-release file

    / etc / system-release文件
  3. /etc/os-release file

    / etc / os-release文件
  4. /etc/redhat-release file

    / etc / redhat-release文件
  5. lsb_release command

    lsb_release命令
  6. rpm query

    rpm查询
  7. rpm macro

    rpm宏
  8. hostnamectl command

    hostnamectl命令

CentOS版本号是什么意思? (What does CentOS Version Number Means?)

CentOS version have three parts.

CentOS版本包括三个部分。

  1. Major Version: Major release version number

    主要版本:主要发行版本号
  2. Minor Version: Minor release version number

    次要版本:次要发行版本号
  3. Monthstamp: codebase month and year timestamp

    Monthstamp:代码库的月份和年份时间戳

1. / etc / centos-release文件 (1. /etc/centos-release file)

The CentOS specific file, which contains the CentOS release and version details.

特定于CentOS的文件,其中包含CentOS发行版和版本详细信息。


[root@centos ~]# cat /etc/centos-release
CentOS Linux release 8.1.1911 (Core) 
[root@centos ~]# 
  • Major Version: 8

    主要版本:8
  • Minor Version: 1
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值