Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2900718
  • 博文数量: 199
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 4126
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-06 19:06
个人简介

半个PostgreSQL DBA,热衷于数据库相关的技术。我的ppt分享https://pan.baidu.com/s/1eRQsdAa https://github.com/chenhuajun https://chenhuajun.github.io

文章分类

全部博文(199)

文章存档

2020年(5)

2019年(1)

2018年(12)

2017年(23)

2016年(43)

2015年(51)

2014年(27)

2013年(21)

2011年(1)

2010年(4)

2009年(5)

2008年(6)

分类: SOLARIS

2014-09-25 12:00:32

Solaris的Patch策略,简单而言,可以概括为以下几点
1)Bugfix打Patch
2)功能强化发布Release更新
Release更新的名称如下:
  ...
  Solaris 10 9/10 (Update 9) 
  Solaris 10 8/11 (Update 10) 
  Solaris 10 1/13 (Update 11)
其中的1/13指13年1月。
3)Release更新也会收集很多Bugfix的Patch
  相当于IE的累计更新,被Release更新收集的Patch就被"obsoleted"了。
4)Release更新也是Patch的形式,所以可以把Release认为是一个特殊的Patch
5)每个Patch(包括Release)有个PatchID,
  比如:120061-02,其中02代表是这个Patch的第2次修正版
6)Patch之间有依赖关系,子Patch依赖于父Patch
  由于这个依赖关系,就需要按顺序打Patch,但因为Release更新会收集一堆Patch又一定程度上简化了升级的过程。
升级过程变成了:
  1. 打当前Release更新的Bugfix Patch
  2. 下一个版本的Release更新Patch
  3. 下一个版本Release更新的Bugfix Patch
  4. 下下一个版本的Release更新Patch
  5. ...
详细参考: 
https://blogs.oracle.com/patch/entry/solaris_10_kernel_patchid_progression

每个Patch的详细参考

比如:


几个相关的命令
1. 查看Solaris版本
bash-3.2$ cat /etc/release
                   Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011


bash-3.2$ showrev
Hostname: NODE1
Hostid: 84f9f16d
Release: 5.10
Kernel architecture: sun4v
Application architecture: sparc
Hardware provider: Oracle Corporation
Domain: 
Kernel version: SunOS 5.10 Generic_147440-01


2. 查看详细的Patch一览
bash-3.2$ showrev -a
...


3. 查看某个文件来自哪个包
bash-3.2$ pkgchk -lp /lib/sparcv9/libc.so.1
NOTE: Couldn't lock the package database.
Pathname: /lib/sparcv9/libc.so.1
Type: regular file
Expected mode: 0755
Expected owner: root
Expected group: bin
Expected file size (bytes): 1792616
Expected sum(1) of contents: 24625
Expected last modification: Jul 07 00:00:41 2011 Referenced by the following packages:
        SUNWcslr       
Current status: installed


4. 查看包的版本(没查到Patch号,但有Patch的时间戳)
bash-3.2$ pkginfo -l SUNWcslr
   PKGINST:  SUNWcslr
      NAME:  Core Solaris Libraries (Root)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.10.0,REV=2005.01.21.15.53
   BASEDIR:  /
    VENDOR:  Oracle Corporation
      DESC:  core software for a specific instruction-set architecture
    PSTAMP:  on10ptchfeat20110620074843
  INSTDATE:  Aug 29 2013 19:39
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:      245 installed pathnames
                   2 shared pathnames
                   5 directories
                 133 executables
               36290 blocks used (approx)

阅读(3973) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~