Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.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 .\"     $DragonFly: src/usr.sbin/pkg_install/update/Attic/pkg_update.1,v 1.2 2003/06/17 04:29:59 dillon Exp $
28 .Dd December 27, 2000
29 .Dt PKG_UPDATE 1
30 .Os
31 .Sh NAME
32 .Nm pkg_update
33 .Nd update an installed package
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl nv
37 .Op Fl r Ar oldpkg
38 .Ar newpkg.tgz
39 .Sh DESCRIPTION
40 The
41 .Nm
42 command is used to update an already installed package.
43 It takes care
44 of propagating dependencies from the replaced versions to the newly
45 installed version.
46 It would normally be used to replace all currently
47 installed versions of a package with a more current version.
48 It can
49 also be used to revert a package to an older version by specifying the
50 version to be replaced with the
51 .Fl r
52 option.
53 .Pp
54 The following options are available:
55 .Bl -tag -width indent
56 .It Fl n
57 Print the actions to be performed but don't actually do them.
58 .It Fl r Ar oldpkg
59 Replace the specified version of the package.
60 Normally
61 .Nm
62 will replace all installed versions of a package with the new version.
63 This isn't always desirable since for some packages it is expected
64 that multiple versions will be installed at the same time.
65 This option allows a specific version to be replaced.
66 .It Fl v
67 Enable verbose output.
68 .El
69 .Sh SEE ALSO
70 .Xr pkg_add 1 ,
71 .Xr pkg_create 1 ,
72 .Xr pkg_delete 1 ,
73 .Xr pkg_info 1 ,
74 .Xr pkg_version 1
75 .Sh AUTHORS
76 .An Paul Richards Aq paul@FreeBSD.org
77 .Sh BUGS
78 None known of as yet.