概要
パッケージをソースからコンパイルしてインストールする場合、
ファイルがバラバラにインストールされてしまい、ファイルが把握できていないなんてことがよくある。
こちらのソフトは、そんな迷子ファイルを迷子にならない様に管理してくれるソフトです。
環境
ソフト | バージョン | |
---|---|---|
OS | Raspbian | Jessi Lite |
porg | 0.10 |
インストール
porg インストール手順
$ tar xvf porg-0.10.tar
$ cd porg-0.10
$ ./configure --disable-grop
$ make
$ sudo make install
$ sudo porg -lp porg-0.10 make install
使い方
ヘルプ
$ porg --help
Usage:
porg [OPTIONS] <packages|files|command>
General options:
-a, --all Apply to all logged packages (not with -r).
-L, --logdir=DIR Use DIR as the log directory.
-v, --verbose Verbose output (-vv produces debugging messages).
-x, --exact-version Do not expand version of packages given as arguments.
-h, --help Display this help message.
-V, --version Display version information.
General list options:
-R, --reverse Reverse order while sorting.
-t, --total Print totals.
-z, --no-package-name Don't print the name of the package.
Package list options:
-d, --date Print the installation day (-dd prints the hour too).
-s, --size Print the installed size of the package.
-F, --nfiles Print the number of installed files.
-S, --sort=WORD Sort by WORD: 'name', 'date', 'size' or 'files'.
Package information options:
-i, --info Print package information.
-o, --configure-options Print the arguments passed to configure when the
package was installed.
-q, --query Query for the packages that own one or more files.
Package remove options:
-r, --remove Remove the (non shared) files of the package.
-b, --batch Do not ask for confirmation when removing or unlogging
-e, --skip=PATH:... Do not remove files in PATHs (see the man page).
-U, --unlog With -r: unlog the package, without removing any file.
Package log options:
-l, --log Enable log mode. See the man page.
-p, --package=PKG Name of the package to be logged.
-D, --dirname Use the name of the current directory as the name
of the package.
-+, --append With -p or -D: If the package is already logged,
append the list of files to its log.
-j, --log-missing Do not skip missing files.
-I, --include=PATH:... List of paths to scan.
-E, --exclude=PATH:... List of paths to skip.
Note: The package list mode is enabled by default.
管理パッケージの一覧表示
$ porg --all
インストールしたファイルの一覧表示
$ porg -f foo-0.00
パッケージの削除
$ porg -r foo-0.00