A pkg-config implementation for Ruby
得到已安装包的“图形化”的树型视图
生成包和它们的依赖的 ascii 码艺术图形树。
比如 setxkbmap 和 xkbcomp
[~] edwin@k7>pkg_tree 'xkb[cm]'
setxkbmap-1.0.4
|\__ kbproto-1.0.3
|\__ pkg-config-0.23_1
|\__ xproto-7.0.10_1
|\__ libXau-1.0.3_2
|\__ libXdmcp-1.0.2_1
|\__ libX11-1.1.3_1,1
\__ libxkbfile-1.0.4
xkbcomp-1.0.3
|\__ kbproto-1.0.3
|\__ pkg-config-0.23_1
|\__ xproto-7.0.10_1
|\__ libXau-1.0.3_2
|\__ libXdmcp-1.0.2_1
|\__ libX11-1.1.3_1,1
\__ libxkbfile-1.0.4
Make a pkg-plist for a FreeBSD port. Try to be as "automatic" as possible.
That's all it does ;-)
Basic usage
===========
1. Build your port to the staging directory: `make stage`.
2. Run this from your port's directory (or set `-p`).
Alternatively, you can install your ports to a "fake" prefix, this is the "old"
from before staging support, but it has the added advantage that you've tested
whether your port works when installing to a different prefix.
1. Build & install your port with a different `PREFIX`: `make install
PREFIX=/var/tmp/ptest`.
2. Run this from your port's directory with `-x` set to `PREFIX`.
This program provides for an alternate pkg upgrade procedure.
Move /usr/local to /usr/old-local and /var/db/pkg to /var/db/old-pkg,
then use pkg-compare to generate a list of packages to install.
pkg_search queries the appropriate database file of FreeBSD, DragonFlyBSD or
NetBSD for a given package name.
pkg_cutleaves finds installed 'leaf' packages, i.e. packages that are
not referenced by any other installed package, and lets you decide for
each one if you want to keep or deinstall it (via pkg_deinstall(1) or
pkg-delete(8)).
Provide information about Emacs packages.
pkg_replace is used to upgrade installed packages.
It is compatible with portupgrade and can be used as
an alternative to portupgrade and portmaster.