#amazon(xxxxx)
 
 

Solaris (pkg)

入手

インストール

パッケージをインストールする。

# pkgadd -d /mnt/Solaris_9/Product SUNWless

Processing package instance <SUNWless> from </opt/disk2>

The GNU pager (less)
(sparc) 11.9.0,REV=2002.03.02.00.35

Less
Copyright (C) 1984-2000  Mark Nudelman

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice in the documentation and/or other materials provided with
   the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Using </> as the package base directory.
## Processing package information.
## Processing system information.
   2 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <SUNWless> [y,n,?] y

Installing The GNU pager (less) as <SUNWless>

## Installing part 1 of 1.
241 blocks

Installation of <SUNWless> was successful.

表示

インストール済みパッケージの一覧を表示する。

# pkginfo
system      SUNWadmr       System & Network Administration Root
system      SUNWatfsr      AutoFS, (Root)
system      SUNWatfsu      AutoFS, (Usr)
system      SUNWauda       Audio Applications
system      SUNWaudd       Audio Drivers
system      SUNWauddx      Audio Drivers (64-bit)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

インストール済みパッケージの詳細情報を表示する。

# pkginfo -l SUNWless
   PKGINST:  SUNWless
      NAME:  The GNU pager (less)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.9.0,REV=2002.03.02.00.35
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  The GNU pager (less)
    PSTAMP:  sfw8120020302003600
  INSTDATE:  Oct 04 2005 20:47
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:        5 installed pathnames
                   2 shared pathnames
                   2 directories
                   3 executables
                 241 blocks used (approx)

調査

コマンドからパッケージ名を調べる。

# pkgchk -lp /usr/bin/less
Pathname: /usr/bin/less
Type: regular file
Expected mode: 0555
Expected owner: root
Expected group: bin
Expected file size (bytes): 104908
Expected sum(1) of contents: 45206
Expected last modification: Mar 02 17:19:17 2002
Referenced by the following packages:
        SUNWless
Current status: installed

削除

# pkgrm -A SUNWless

The following package is currently installed:
   SUNWless        The GNU pager (less)
                   (sparc) 11.9.0,REV=2002.03.02.00.35

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWless>
## Verifying package dependencies.
## Processing package information.
## Removing pathnames in class <none>
/usr/bin/lesskey
/usr/bin/lessecho
/usr/bin/less
/usr/bin <shared pathname not removed>
/usr <shared pathname not removed>
## Updating system information.

Removal of <SUNWless> was successful.

Freeware for Solaris

pkg-get compare
pkg-get install
pkg-get upgrade
 
 

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2014-02-08 (土) 00:42:24