注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临我的博客

 
 
 

日志

 
 

在SOLARIS下如何查看版本号  

2010-10-14 11:18:46|  分类: unix |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

# cat /etc/release
           Solaris 10 3/05 s10_74L2a SPARC
           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
           Use is subject to license terms.
            Assembled 22 January 2005          

 

# uname -a
SunOS v240 5.10 Generic sun4u sparc SUNW,Sun-Fire-V240

 

# man showrev
正在重新格式化页面。请等待... 完成

System Administration Commands                        showrev(1M)

NAME
     showrev - show machine, software revision, and  patch  revi-
     sion information

SYNOPSIS
     /usr/bin/showrev [-a]  [-p  |  -p  -R  root_path]   [-w]  [-
     c command] [-s hostname]

DESCRIPTION
     showrev  displays  revision  information  for  the   current
     hardware  and software. With no arguments, showrev shows the
     system  revision  information  including  hostname,  hostid,
     release,   kernel  architecture,  application  architecture,
     hardware provider, domain, and kernel version.

     If a command is supplied with the -c option,  showrev  shows
     the  PATH  and  LD_LIBRARY_PATH and finds out all the direc-
     tories within the PATH that contain it. For each file found,
     its  file  type, revision, permissions, library information,
     and checksum are printed as well.

OPTIONS
     The following options are supported:

     -a              Print all system revision information avail-
                     able.  Window  system  and patch information
                     are added.

     -c command      Print the revision  information  about  com-
                     mand.

     -p              Print only the  revision  information  about
                     patches.

     -R root_path    Define the full path name of a directory  to
                     use as the root_path. By specifying the root
                     path, showrev retrieves the revision  infor-
                     mation  about  the patch from package system
                     information files located under a  directory
                     tree  starting  at  root_path. The root_path
                     can be specified when  retrieving  installed
                     patch information in a client from a server,
                     for example, /export/root/client1.

SunOS 5.10           Last change: 7 May 2004                    1

System Administration Commands                        showrev(1M)

     -s hostname     Perform  this  operation  on  the  specified
                     hostname.   The   -s   operation   completes
                     correctly  only  when  hostname  is  running
                     Solaris 2.5 or compatible versions.

     -w              Print only the OpenWindows revision informa-
                     tion.

# showrev
Hostname: v240
Hostid:

Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic

# showrev -p
Patch: 113886-27 Obsoletes:  Requires:  Incompatibles:  Packages: SUNWglrt, SUNW
glrtu, SUNWglsrz, SUNWgldp, SUNWglsr, SUNWgldoc, SUNWglh
Patch: 113887-27 Obsoletes:  Requires:  Incompatibles:  Packages: SUNWglrtx, SUN
Wglsrx, SUNWgldpx

# showrev -a
Hostname: v240
Hostid:

Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic

OpenWindows version:
Solaris X11 Version 6.6.2 15 December 2004

Patch: 113886-27 Obsoletes:  Requires:  Incompatibles:  Packages: SUNWglrt, SUNW
glrtu, SUNWglsrz, SUNWgldp, SUNWglsr, SUNWgldoc, SUNWglh
Patch: 113887-27 Obsoletes:  Requires:  Incompatibles:  Packages: SUNWglrtx, SUN
Wglsrx, SUNWgldpx

 

如果软件是以软件包形式安装进去的,可以通过检索安装数据库获得。
以sendmail为例

1. grep sendmail /var/sadm/install/contents

检索出与sendmail有关系的package有SUNWsndmr。

2. pkginfo -l SUNWsndmr
可以得到该软件包的版本。

3. pkgchk -v SUNWsndmr
可以察看SUNWsndmr包括的所有文件。

 

 

                            

  评论这张
 
阅读(2559)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017