pkgman の使い方

pkgman コマンドで Haiku OS のソフトなどを含むパッケージを管理できます。 GUI でパッケージ管理を行う HaikuDepot もあります。 HaikuPorts でソフトをビルドしてテストしていると、HaikuDepot を使って行うのが面倒になってきます。そこでコマンドラインでパッケージを管理できる pkgman を利用します。

パッケージのインストールやアンインストールは簡単です。

pkgman install package_name
pkgman uninstall package_name

などとします。複数のパッケージを同時にインストール、アンインストール指定できます。

package_name に HaikuPorts での名称やローカルにあるパッケージのファイル名を指定できます。

レポジトリでパッケージを検索するには search コマンドを使用します。

pkgman search mozc

以下にオプション一覧を示します。

> pkgman --help
Usage: pkgman <command> <command args>
Manages packages and package repositories.

Package management commands:
  full-sync
    Synchronizes the installed packages with the repositories.

  install <package> ...
    Installs one or more packages.

  search ( <search-string> | --all | -a )
    Searches for packages matching <search-string>.

  uninstall <package> ...
    Uninstalls one or more packages.

  update [ <package> ... ]
    Updates the specified or all packages.

Repository management commands:
  add-repo <repo-base-url>
    Adds the repository with the given <repo-base-URL>.

  drop-repo <repo-name>
    Drops the repository with the given <repo-name>.

  list-repos
    Lists all repositories.

  refresh [<repo-name> ...]
    Refreshes all or just the given repositories.

Other commands:
  resolve-dependencies <package> ... <repository> [ <priority> ] ...
    Resolves all packages the given packages depend on.

Common options:
  -h, --help   - Print usage info for a specific command.

install コマンド向けオプション

Options:
  --debug <level>
    Print debug output. <level> should be between 0 (no debug output,
    the default) and 10 (most debug output).
  -H, --home
    Install the packages in the user's home directory. Default is to
    install in the system directory.
  -y
    Non-interactive mode. Automatically confirm changes, but fail when
    encountering problems.

uninstall コマンド向けオプション

Options:
  --debug <level>
    Print debug output. <level> should be between 0 (no debug output,
    the default) and 10 (most debug output).
  -H, --home
    Uninstall the packages from the user's home directory. Default is to
    uninstall from the system directory.
  -y
    Non-interactive mode. Automatically confirm changes, but fail when
    encountering problems.