这台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:~ # 发布于 2012-04-26 20:39:16
很可能你有一个SLES10 SP4。
执行rpm -V sles-release - if /etc/SuSE-relase不显示"5“(即更改的MD5-校验和)文件内容是原始的。
如果您用精确的内核版本(uname -r)更新您的问题,我甚至可以告诉您更多。
您还可以检查该系统上哪些存储库是活动的:zypper sl
更新uname/zypper结果:
这里是SLES及其发布日期的列表。这表明您的内核是在2011-10-28年发布的SLES10 SP4。有一个更新的SP4内核从2012-01-23.
你的zypper sl输出令我费解。我看不出您的系统是如何到达SLES10 SP4的--只显示了SLES10 SP2存储库。
我觉得值得再深入研究一下.(见我目前对你问题的评论)
发布于 2016-12-08 07:00:53
尝试(对于更新的版本):
cat /etc/os-release如果这不起作用,请尝试(对于旧版本):
cat /etc/SuSE-release发布于 2012-04-26 09:13:41
这两个文件都是sles-release包的一部分,请参见rpm -qf /etc/SuSE-release /etc/issue。
该命令将输出您安装的软件包的版本。
我怀疑您已经修改了/etc/发布,最近的更新将创建一个文件/etc/issue.rpmnew。更改是该文件显示为10.4。
因此,这表明您有SLES 10.4。
但是你不应该太依赖那些文件。对于SLES,您需要检查在yast中配置了哪些存储库。我不是SLES专家,所以我无法控制这部分,但这应该会让你开始。
这里是显示如何在各种SP之间更新SLES系统的页面。
https://unix.stackexchange.com/questions/37336
复制相似问题