偏差値40からのはてなブログ生活

頑張って書いてみる

やっとpkg-get導入

しばらく放置されてましたが、やっとこさpkg-get導入します。

Blastwave.org - An OpenSolaris Community Site というサイトからpkgファイルを取得します。

http://www.blastwave.org/pkg_get.pkg

ダウンロード後にpkgaddします。

bash-3.00# pkgadd -d pkg_get.pkg


The following packages are available:

1 CSWpkgget pkg_get - CSW version of automated package download tool

(all) 3.7



Select package(s) you wish to process (or 'all' to process

all packages). (default: all) [?,??,q]:



中のパッケージインスタンス を処理中です。



pkg_get - CSW version of automated package download tool(all) 3.7

You may use and copy this software without charge, as you see fit.

The software is copyright (C) Philip Brown, Nov 2000-2006



Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive site.

(or /etc/opt/csw/pkg-get.conf)



Dont stick with the default of ibiblio.org: it's very slow!





選択されたベースディレクトリ は、インストール 前に存在して

いる必要があります。



今このディレクトリを作成しますか [y,n,?,q] y

をパッケージのベースディレクトリとして使用します。

## パッケージ情報を処理中です。

## システム情報を処理中です。

警告: のモードをデフォルトモード (755) に設定しようとしています

警告: のモードをデフォルトモード (755) に設定しようとしています

警告: のモードをデフォルトモード (755) に設定しようとしています

警告: のモードをデフォルトモード (755) に設定しようとしています

警告: のモードをデフォルトモード (755) に設定しようとしています

1 個のパッケージパス名がすでに正しくインストールされています。

## ディスク領域の要件を確認中です。

## すでにインストール済みのパッケージとの重複を確認中です。

## setuid/setgid を行うプログラムを検査中です。



このパッケージには、パッケージのインストール処理中にスーパーユーザーの

アクセス権で実行するスクリプトが含まれています。



のインストールを継続しますか [y,n,?] y



pkg_get - CSW version of automated package download tool を としてインストール中です。



## 1/1 部分をインストールしています。

/opt/csw/bin/pkg-get

/opt/csw/etc/pkg-get.conf.csw

/opt/csw/share/man/man1m/pkg-get.1m

/var/pkg-get/admin-fullauto

[ クラス を検査しています ]

## postinstall スクリプトを実行中です。



Installing /opt/csw/etc/pkg-get.conf.csw to pkg-get.conf



のインストールに成功しました。

その後、「/etc/pkg-get.conf」を確認(or修正)します。
太文字になっているところがコメントアウトされている状態にします。

# Configuration file for "pkg-get"
# man pkg-get for details on the program

#url=ftp://ftp.sunfreeware.com/pub/freeware
#North american mirror of of sunfreeware
# See http://www.sunfreeware.com/ftp.html for other mirrors
#url=http://mirrors.xmission.com/sunfreeware
# North american site for CSW packages, instead of sunfreeware ones
url=http://ibiblio.org/pub/packages/solaris/csw/unstable/

以下略

その後、最新のパッケージファイルの情報を取得します。

bash-3.00# pkg-get -U
WARNING: gpg not found
Getting catalog...

=> `catalog'
Resolving ibiblio.org... 152.46.7.80
Connecting to ibiblio.org|152.46.7.80|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 192,283 (188K) [text/plain]

100%[====================================>] 192,283 94.41K/s

17:05:16 (94.25 KB/s) - `catalog' saved [192283/192283]

WARNING: gpg not available.
Stripping off catalog signature without verifying
Updating catalog file
/var/pkg-get/catalog-ibiblio.org updated

=> `descriptions'
Resolving ibiblio.org... 152.46.7.80
Connecting to ibiblio.org|152.46.7.80|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85,717 (84K) [text/plain]

100%[====================================>] 85,717 65.68K/s

17:05:18 (65.58 KB/s) - `descriptions' saved [85717/85717]

Updated description file

成功したら、試しにw3mをインストールしてみます。

bash-3.00# pkg-get -i w3m

以下のようなメッセージが出たら成功です。

のインストールに成功しました。

が、w3mの起動は出来たものの、リンクを踏むとコアダンプしてw3m逝去 orz