インストールとアンインストール

インストールの手順

インストール、アンインストールを行うには、ダウンロードした製品を展開してください。 なお、インストール、アンインストールは root ユーザで行う必要があります。

  1. インストールスクリプトを実行します。

    # sh 《展開したPowergresディレクトリ》/install.sh
    
  2. 使用許諾契約書の内容が表示されます。 よくお読みの上、同意される場合は「yes」と入力します。

    Do you agree to the license terms (yes/no): yes
    
  3. ライセンスキーを入力します。 ライセンスキーは箱に同梱されているライセンスキーを入力してください。

    Please enter the license key (XXXX-XXXX-XXXX-XXXX): XXXX-XXXX-XXXX-XXXX
    
  4. インストールが開始されます。 インストール時に postgres ユーザが存在しなければ、自動的に作成されます。

    Installing packages for database server...
    
    Installing : powergresplus16-libs-16.10-1.el7.x86_64                                                               1/6
    Installing : powergresplus16-16.10-1.el7.x86_64                                                                    2/6
    Installing : powergresplus16-server-16.10-1.el7.x86_64                                                             3/6
    Installing : powergresplus16-contrib-16.10-1.el7.x86_64                                                            4/6
    Installing : powergresplus16-pwg_stat_snapshot-1.0-2.el7.noarch                                                   5/6
    Installing : powergresplus16-docs-16.10-1.el7.x86_64                                                               6/6
    
  5. ライセンスキーがインストールされます。

    Installing license key... Done.
    
  6. 最後に以下のメッセージが表示されれば、インストールは完了です。

    PowerGres Plus (Linux) 16 installation completed.
    
  7. /var/lib/pgsql/.pgsql_profileに以下の行を追加してください。(インストール時に作成された postgres ユーザ以外で PowerGres のデータベースを実行・管理したい場合は~/.bash_profileに追加してください)

    LD_LIBRARY_PATH=/opt/powergresplus16/lib:$LD_LIBRARY_PATH
    PATH=/opt/powergresplus16/bin:$PATH
    MANPATH=/opt/powergresplus16/share/man:$MANPATH
    export LD_LIBRARY_PATH PATH MANPATH
    

インストール後の構成

PowerGres のインストールが完了すると、以下の RPM パッケージがインストールされます。

powergresplus16

クライアントプログラムとライブラリ

powergresplus16-libs

クライアントから必要とされる共有ライブラリ

powergresplus16-server

サーバを生成して起動するのに必要なプログラム

powergresplus16-docs

ドキュメント (このマニュアルも /usr/share/doc/powergresplus《メジャーバージョン》-docs/manual ディレクトリにインストールされます)

※/etc/dnf/dnf.conf で tsflags=nodocs と設定している場合、マニュアルはインストールされません。

powergresplus16-contrib

コントリビュートされた追加モジュール

powergresplus16-pwg_stat_snapshot

統計情報のスナップショットを取得するモジュール

powergresplus16-pg_ivm

マテリアライズドビュー高速更新化モジュール

なおインストールされるパッケージは、Red Hat Enterprise Linux, Rocky Linux, AlmaLinux, Amazon Linux 2023 で共通となります。

以下のパッケージは自動的にインストールされません。

powergresplus16-devel

開発向けヘッダファイルとライブラリ

powergresplus16-test

テストスイート

powergresplus16-plperl

PL/Perl (Perl 手続き言語)

powergresplus16-plpython

PL/Python (Python 手続き言語)

powergresplus16-pltcl

PL/Tcl (Tcl 手続き言語)

powergresplus16-eudc

外字変換モジュール

powergresplus16-postgis

地理空間データベース拡張

powergresplus16-textsearch_ja

日本語全文検索用の拡張

powergresplus16-mecab

全文検索用の形態素解析拡張

powergresplus16-mecab-ipadic

MeCab 用の辞書

powergresplus16-pg_bigm

全文検索用のインデックス拡張

powergresplus16-pgaudit

監査ログ出力用の拡張

powergresplus16-pgvector

ベクトルデータ拡張

powergresplus16-pgvectorscale

より強力なベクトルデータ拡張

上記のパッケージが必要な場合には手動でインストールしてください。

# cd 《製品ファイルを展開したディレクトリ》/packages/《OSに対応したディレクトリ》
# yum install 《パッケージのファイル名》
Downloading packages:
Running transaction
  Installing : 《パッケージのファイル名》                    1/1
  Verifying  : 《パッケージのファイル名》                    1/1
Installed:
《パッケージのファイル名》
Complete!

OS に対応したディレクトリは以下のとおりです。

OS ディレクトリ
Red Hat Enterprise Linux 9
Rocky Linux 9
AlmaLinux 9
el9-x86_64
Red Hat Enterprise Linux 8
Rocky Linux 8
AlmaLinux 8
el8-x86_64
Amazon Linux 2023 amzn2023-x86_64

インストール後のライセンスキー変更手順

インストール後にライセンスキーを変更することが可能です。

以下のコマンドを実行してください。

# echo xxxx-xxxx-xxxx-xxxx > /etc/sysconfig/powergresplus16/pwg_license_key.conf 

アンインストールの手順

  1. アンインストールスクリプトを実行します。

    # sh 《展開したPowerGresディレクトリ》/uninstall.sh
    
  2. アンインストールを確認するメッセージが表示されるので、よろしければ「yes」と入力します。

    Do you uninstall PowerGres Plus (Linux) 16 (yes/no): yes
    
  3. アンインストールが開始されます。

    Uninstalling packages for database server... Done.
    
  4. 最後に以下のメッセージが表示されれば、アンインストールは完了です。

    PowerGres Plus (Linux) 16 uninstallation completed.