2010-01-23

OpenSolarisのIPSレポジトリにextraパッケージを追加する

OpenSolarsのIPSレポジトリにextraパッケージを追加する。
extra, https://pkg.sun.com/opensolaris/extra/
無償でAtokとかが使えちゃったりするのは、かなり意義のあることなのです。
OpenSolarsだからこそなのです!


extraレポジトリを利用するには、事前に Sun Online Account にてアカウント登録して、SSL証明書を入手しておく必要があります。
https://pkg.sun.com/register/

入手したSSL証明書をインストールしてextraレポジトリを追加します。

How to Install this OpenSolaris extras Certificate

1. Download the provided key and certificate files, called OpenSolaris_extras.key.pem and OpenSolaris_extras.certificate.pem using the buttons above. Don't worry if you get logged out, or lose the files. You can come back to this site later and re-download them. We'll assume that you downloaded these files into your Desktop folder, ~/Desktop/.

2. Use the following comands to make a directory inside of /var/pkg to store the key and certificate, and copy the key and certificate into this directory. The key files are kept by reference, so if the files become inaccessible to the packaging system, you will encounter errors. Here is how to do it:

$ pfexec mkdir -m 0755 -p /var/pkg/ssl
$ pfexec cp -i ~/Desktop/OpenSolaris_extras.key.pem /var/pkg/ssl
$ pfexec cp -i ~/Desktop/OpenSolaris_extras.certificate.pem /var/pkg/ssl


3. Add the publisher:

$ pfexec pkg set-authority \
-k /var/pkg/ssl/OpenSolaris_extras.key.pem \
-c /var/pkg/ssl/OpenSolaris_extras.certificate.pem \
-O https://pkg.sun.com/opensolaris/extra/ extra


4. To see the packages supplied by this authority, try:

$ pkg list -a 'pkg://extra/*'


If you use the Package Manager graphical application, you will be able to locate the newly discovered packages when you restart Package Manager.