Initial import from FreeBSD RELENG_4:
[games.git] / usr.sbin / pkg_install / update / pkg_update.1
1 .\"
2 .\" Copyright 2000 Paul Richards
3 .\"
4 .\" All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\"
15 .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 .\"
26 .\"     $FreeBSD: src/usr.sbin/pkg_install/update/pkg_update.1,v 1.3.2.1 2001/08/16 15:56:16 ru Exp $
27 .Dd December 27, 2000
28 .Dt PKG_UPDATE 1
29 .Os
30 .Sh NAME
31 .Nm pkg_update
32 .Nd update an installed package
33 .Sh SYNOPSIS
34 .Nm
35 .Op Fl nv
36 .Op Fl r Ar oldpkg
37 .Ar newpkg.tgz
38 .Sh DESCRIPTION
39 The
40 .Nm
41 command is used to update an already installed package.
42 It takes care
43 of propagating dependencies from the replaced versions to the newly
44 installed version.
45 It would normally be used to replace all currently
46 installed versions of a package with a more current version.
47 It can
48 also be used to revert a package to an older version by specifying the
49 version to be replaced with the
50 .Fl r
51 option.
52 .Pp
53 The following options are available:
54 .Bl -tag -width indent
55 .It Fl n
56 Print the actions to be performed but don't actually do them.
57 .It Fl r Ar oldpkg
58 Replace the specified version of the package.
59 Normally
60 .Nm
61 will replace all installed versions of a package with the new version.
62 This isn't always desirable since for some packages it is expected
63 that multiple versions will be installed at the same time.
64 This option allows a specific version to be replaced.
65 .It Fl v
66 Enable verbose output.
67 .El
68 .Sh SEE ALSO
69 .Xr pkg_add 1 ,
70 .Xr pkg_create 1 ,
71 .Xr pkg_delete 1 ,
72 .Xr pkg_info 1 ,
73 .Xr pkg_version 1
74 .Sh AUTHORS
75 .An Paul Richards Aq paul@FreeBSD.org
76 .Sh BUGS
77 None known of as yet.