summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_add.1
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-03-07 19:29:09 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-03-07 19:29:09 +0000
commit5fd8309e025e86b2fa98632f8ef5d75cf58034d1 (patch)
tree9313c55374f783a5a49a4df37efd7f78cec86ef4 /usr.sbin/pkg_add/pkg_add.1
parent098ca9d129ce67504785871b2519b7713d3637c6 (diff)
A few useful features:
- pkg_add -A arch, to make believe we are extracting on a given arch (matches pkg_create). - pkg_add -P cdrom/-P ftp, to enforce extracting only cdrom'able packages or ftp'able packages. Helps a lot for checking cdrom lists. - dependency look-up will look through local directory listings to solve dependencies, so that non-default dependencies will work more seemlessly. (doing the same thing for distant repository will happen after 3.5, but this requires more apparatus: caching package lists, and killing/restoring existing connections, plus more error handling). okay pval
Diffstat (limited to 'usr.sbin/pkg_add/pkg_add.1')
-rw-r--r--usr.sbin/pkg_add/pkg_add.115
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add.1 b/usr.sbin/pkg_add/pkg_add.1
index d0aca48181a..d710d09fc28 100644
--- a/usr.sbin/pkg_add/pkg_add.1
+++ b/usr.sbin/pkg_add/pkg_add.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pkg_add.1,v 1.12 2004/02/20 19:13:51 espie Exp $
+.\" $OpenBSD: pkg_add.1,v 1.13 2004/03/07 19:29:08 espie Exp $
.\"
.\" FreeBSD install - a package for the installation and maintenance
.\" of non-core utilities.
@@ -26,9 +26,11 @@
.Sh SYNOPSIS
.Nm pkg_add
.Op Fl Inv
+.Op Fl A Ar arch
.Op Fl B Ar pkg-destdir
.Op Fl f Ar keys
.Op Fl L Ar localbase
+.Op Fl P Ar type
.Ar pkg-name Op Ar ...
.Sh DESCRIPTION
The
@@ -121,6 +123,10 @@ If an installation script exists for a given package, do not execute it.
.It Fl n
Don't actually install a package, just report the steps that
would be taken if it was.
+.It Fl A Ar arch
+Assume
+.Ar arch
+as current machine architecture for any package tests.
.It Fl B Ar pkg-destdir
Set
.Ar pkg-destdir
@@ -165,6 +171,13 @@ See
.Xr bsd.port.mk 5
for a description of
.Ev LOCALBASE .
+.It Fl P Ar type
+Check permissions for distribution, where
+.Ar type
+can be
+.Sq cdrom
+or
+.Sq ftp .
.El
.Pp
By default, when adding packages via FTP, the