source: trunk/athena/etc/rpmupdate/rpmupdate.8 @ 15738

Revision 15738, 3.7 KB checked in by ghudson, 24 years ago (diff)
Move rpmupdate here from packs/update/os/linux.
Line 
1.\" $Id: rpmupdate.8,v 1.1 2001-03-09 20:38:00 ghudson Exp $
2.\"
3.\" Copyright 2000 by the Massachusetts Institute of Technology.
4.\"
5.\" Permission to use, copy, modify, and distribute this
6.\" software and its documentation for any purpose and without
7.\" fee is hereby granted, provided that the above copyright
8.\" notice appear in all copies and that both that copyright
9.\" notice and this permission notice appear in supporting
10.\" documentation, and that the name of M.I.T. not be used in
11.\" advertising or publicity pertaining to distribution of the
12.\" software without specific, written prior permission.
13.\" M.I.T. makes no representations about the suitability of
14.\" this software for any purpose.  It is provided "as is"
15.\" without express or implied warranty.
16.TH RPMUPDATE 8 "29 Feb 2000"
17.SH NAME
18rpmupdate \- Update workstation from one RPM list to another
19.SH SYNOPSIS
20.B rpmupdate [-hnp] \fIoldlist\fP \fInewlist\fP
21.SH DESCRIPTION
22.B rpmupdate
23is normally invoked by
24.BR update_ws (8)
25to update an Athena Red Hat workstation from one list of RPMs to
26another.
27.B rpmupdate
28accepts the following options:
29.TP 5
30.B \-h
31Display the names of RPMs being installed and show the progress of the
32installation using a line of 50 hash marks.
33.TP 5
34.B \-n
35Display what package updates would occur, but do not actually perform
36them.
37.TP 5
38.B \-p
39Apply the public workstation rules to decide what updates to perform,
40instead of the private workstation rules.  If this option is
41specified, the information in
42.I oldlist
43is not used.
44.PP
45The files
46.I oldlist
47and
48.I newlist
49should each contain a list of RPM pathnames, possibly followed by
50whitespace and an epoch number.  The RPM pathnames may be relative to
51the current directory and must include the package name, version,
52release, and architecture of the RPM in the canonical format; for
53example, the line:
54.PP
55.RS
56redhat-6.1/RedHat/RPMS/kdebase-1.1.2-10.i386.rpm 2
57.RE
58.PP
59would indicate an RPM with a package name of kdebase, a version of
601.1.2, a release of 10, an architecture of "i386", and an epoch of 2.
61If the epoch number is not included, it is assumed that the RPM does
62not have one.  rpmupdate will automatically downgrade architectures
63which are too advanced for the current system; e.g. on an i586 system,
64rpmupdate will replace "i686" with "i586" in the architecture field.
65.PP
66After reading the old list, new list, and installed list of RPMs,
67.B rpmupdate
68decides which packages to erase, install, and update according to
69either the public or private workstation rules.  The public
70workstation rules are:
71.IP *
72If a locally installed package is not at the same epoch, version, and
73release as the package in the new list, the package in the new list is
74installed.
75.IP *
76If a locally installed package is not present in the new list, the
77package is removed.
78.PP
79The private workstation rules are:
80.IP *
81If a locally installed package is at the same epoch, version, and
82release as the package in the old list, or if a package is present in
83the new list but is not locally installed and is not present in the
84old list, apply the public workstation rules to this package.
85.IP *
86If the new list contains an upgrade for a locally installed package,
87install the upgrade.
88.PP
89Thus, on private workstations, packages which are in sync with the
90existing release will remain in sync with the new release, but a
91package from the release list which has been erased on a private
92workstation will stay erased, a package which has been locally
93upgraded will stay upgraded until the release has a newer version
94available, and a package which has been locally installed will stay
95installed.
96.SH "SEE ALSO"
97.BR update_ws (8)
98.SH AUTHOR
99Greg Hudson, MIT Information Systems
100.br
101Copyright 2000 by the Massachusetts Institute of Technology.
Note: See TracBrowser for help on using the repository browser.