Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

如何查看 Red Hat Enterprise Linux 具體 Release 版本

編輯:Linux 教學

問題描述

在 Red Hat Enterprise Linux 系統中,如何快速確認目前安裝的具體 release 版本號?

解決方案

最直接的方法是在終端機執行 lsb_release -a 指令,該指令會列出完整的 LSB(Linux Standard Base)資訊,包含發行版 ID、描述、版本號與代號。

適用平台

已在 Red Hat Enterprise Linux 4 與 5 平台測試通過。

範例輸出

[root@localhost ~]# lsb_release -a
LSB Version:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description:    Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
Release:        4
Codename:       NahantUpdate4

補充說明

  • 若系統未安裝 lsb_release,可透過 yum install redhat-lsb 安裝。
  • 亦可查閱 /etc/redhat-release 檔案快速取得版本字串。
Copyright © Windows教程網 All Rights Reserved