- 论坛徽章:
- 1
|
OB-faq45.txt:- 15.2.2 - Making things easy: PKG_PATH
- You can make things really easy by using the PKG_PATH environment variable.
- Just point it to your favorite location, and pkg_add(1) will automatically
- look there for any package you specify, and also fetch and install the
- necessary dependencies of this package automatically.
- A list of possible locations to fetch packages from is given in the following
- section.
- Example 1: fetching from your CDROM, assuming you mounted it on /mnt/cdrom
- $ export PKG_PATH=/mnt/cdrom/4.5/packages/`machine -a`/
- Example 2: fetching from a nearby FTP mirror
- $ export PKG_PATH=ftp://your.ftp.mirror/pub/OpenBSD/4.5/packages/`machine -a`/
复制代码 |
|