SLESバージョンをどのように検出しますか?

SLESバージョンをどのように検出しますか?

このSLESシステムのパッチレベルは何ですか? 10.2または10.4?

SERVER:~ # cat /etc/issue
SUSE LINUX Enterprise Server 10.2
Kernel \r (\m), \l
SERVER:~ # 

SERVER:~ # cat /etc/SuSE-release 
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 4
SERVER:~ # 

修正する:

SERVER:/etc # rpm -V sles-release
S.5....T  c /etc/issue
S.5....T  c /etc/issue.net
S.5....T  c /etc/motd

SERVER:/etc # zypper sl
# | Enabled | Refresh | Type | Name                                                | URI                                                                   
--+---------+---------+------+-----------------------------------------------------+-----------------------------------------------------------------------
1 | No      | No      | YaST | SUSE Linux Enterprise Server 10 SP2                 | cd:///?devices=/dev/hda                                               
2 | Yes     | Yes     | YaST | SUSE Linux Enterprise Server 10 SP2-20110317-171027 | nfs://123.123.123.123/usr/sys/inst.images/Linux/SuSE/SLES10_x86_64/10.2

SERVER:/etc # uname -r
2.6.16.60-0.91.1-smp

アップデート#2:

SERVER:/etc # cat /etc/issue.rpmnew

Welcome to SUSE Linux Enterprise Server 10 SP4  (x86_64) - Kernel \r (\l).

アップデート#3

SERVER:/etc # 

SERVER:~ # rpm -qi glibc
Name        : glibc                        Relocations: (not relocatable)
Version     : 2.4                               Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release     : 31.95.1                       Build Date: Mon Sep 19 16:43:25 2011
Install Date: Sun Mar 18 08:01:27 2012      Build Host: macintyre
Group       : System/Libraries              Source RPM: glibc-2.4-31.95.1.src.rpm
Size        : 5141247                          License: BSD 3-Clause; GPL v2 or later; LGPL v2.1 or later
Signature   : DSA/SHA1, Mon Sep 19 16:45:00 2011, Key ID a84edae89c800aca
Packager    : http://bugs.opensuse.org
URL         : http://www.gnu.org/software/libc/libc.html
Summary     : Standard Shared Libraries (from the GNU C Library)
Description :
The GNU C Library provides the most important standard libraries used
by nearly all programs: the standard C library, the standard math
library, and the POSIX thread library.  A system is not functional
without these libraries.
Distribution: SUSE Linux Enterprise 10
SERVER:~ # 

ベストアンサー1

試してみてください(最新バージョンの場合):

cat /etc/os-release

それでも問題が解決しない場合は、以下を試してください(以前のバージョンの場合)。

cat /etc/SuSE-release

おすすめ記事