summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg/pkg.7
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-11-01 12:37:36 +0000
committerbdrewery <bdrewery@FreeBSD.org>2013-11-01 12:37:36 +0000
commit1ccf91520fe9b018e7620813e3a5536771b33ef8 (patch)
tree9fa1b2014360eebdbbda5d7335156c902c5909b5 /usr.sbin/pkg/pkg.7
parent4d075e1cc9b6b96e94e52889a1c10d4610f9ea3c (diff)
downloadFreeBSD-src-1ccf91520fe9b018e7620813e3a5536771b33ef8.zip
FreeBSD-src-1ccf91520fe9b018e7620813e3a5536771b33ef8.tar.gz
Add -f support to 'pkg bootstrap' and 'pkg add' to force installation
of pkg(8) even if already installed. This is useful if you somehow messup pkg(8) and need to reinstall from remote with it already being registered in the pkg(8) /var/db/pkg database. Also add some sanity checks to 'pkg add'. Approved by: bapt MFC after: 2 days
Diffstat (limited to 'usr.sbin/pkg/pkg.7')
-rw-r--r--usr.sbin/pkg/pkg.720
1 files changed, 16 insertions, 4 deletions
diff --git a/usr.sbin/pkg/pkg.7 b/usr.sbin/pkg/pkg.7
index 8cb50e5..8c3418f 100644
--- a/usr.sbin/pkg/pkg.7
+++ b/usr.sbin/pkg/pkg.7
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 30, 2013
+.Dd November 1, 2013
.Dt PKG 7
.Os
.Sh NAME
@@ -35,11 +35,13 @@
.Ao Ar command Ac
.Nm
add
+.Op Fl f
.Ao Pa pkg.txz Ac
.Nm
.Fl N
.Nm
bootstrap
+.Op Fl f
.Sh DESCRIPTION
.Nm
is the package management tool.
@@ -55,7 +57,7 @@ The first time invoked,
will bootstrap the real
.Xr pkg 8
from a remote repository.
-.Bl -tag -width "pkg add <pkg.txz> xxxxxxx"
+.Bl -tag -width "pkg bootstrap"
.It Nm Ao Ar command Ac
If
.Xr pkg 8
@@ -63,7 +65,7 @@ is not installed yet, it will be fetched, have its signature verified,
installed, and then have the original command forwarded to it.
If already installed, the command requested will be forwarded to the real
.Xr pkg 8 .
-.It Nm Li add Ao Pa pkg.txz Ac
+.It Nm Li add Oo Fl f Oc Ao Pa pkg.txz Ac
Install
.Xr pkg 8
from a local package instead of fetching from remote.
@@ -72,16 +74,26 @@ If a
file exists and
signature checking is enabled, then the signature will be verified
before installing the package.
+If the
+.Fl f
+flag is specified, then
+.Xr pkg 8
+will be installed regardless if it is already installed.
.It Nm Fl N
Do not bootstrap, just determine if
.Xr pkg 8
is actually installed or not.
Returns 0 and the number of packages installed
if it is, otherwise 1.
-.It Nm Li bootstrap
+.It Nm Li bootstrap Op Fl f
Attempt to bootstrap and do not forward anything to
.Xr pkg 8
after it is installed.
+If the
+.Fl f
+flag is specified, then
+.Xr pkg 8
+will be fetched and installed regardless if it is already installed.
.El
.Sh CONFIGURATION
Configuration varies in whether it is in a repository configuration file
OpenPOWER on IntegriCloud