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 |
---|
18 | rpmupdate \- 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 |
---|
23 | is normally invoked by |
---|
24 | .BR update_ws (8) |
---|
25 | to update an Athena Red Hat workstation from one list of RPMs to |
---|
26 | another. |
---|
27 | .B rpmupdate |
---|
28 | accepts the following options: |
---|
29 | .TP 5 |
---|
30 | .B \-h |
---|
31 | Display the names of RPMs being installed and show the progress of the |
---|
32 | installation using a line of 50 hash marks. |
---|
33 | .TP 5 |
---|
34 | .B \-n |
---|
35 | Display what package updates would occur, but do not actually perform |
---|
36 | them. |
---|
37 | .TP 5 |
---|
38 | .B \-p |
---|
39 | Apply the public workstation rules to decide what updates to perform, |
---|
40 | instead of the private workstation rules. If this option is |
---|
41 | specified, the information in |
---|
42 | .I oldlist |
---|
43 | is not used. |
---|
44 | .PP |
---|
45 | The files |
---|
46 | .I oldlist |
---|
47 | and |
---|
48 | .I newlist |
---|
49 | should each contain a list of RPM pathnames, possibly followed by |
---|
50 | whitespace and an epoch number. The RPM pathnames may be relative to |
---|
51 | the current directory and must include the package name, version, |
---|
52 | release, and architecture of the RPM in the canonical format; for |
---|
53 | example, the line: |
---|
54 | .PP |
---|
55 | .RS |
---|
56 | redhat-6.1/RedHat/RPMS/kdebase-1.1.2-10.i386.rpm 2 |
---|
57 | .RE |
---|
58 | .PP |
---|
59 | would indicate an RPM with a package name of kdebase, a version of |
---|
60 | 1.1.2, a release of 10, an architecture of "i386", and an epoch of 2. |
---|
61 | If the epoch number is not included, it is assumed that the RPM does |
---|
62 | not have one. rpmupdate will automatically downgrade architectures |
---|
63 | which are too advanced for the current system; e.g. on an i586 system, |
---|
64 | rpmupdate will replace "i686" with "i586" in the architecture field. |
---|
65 | .PP |
---|
66 | After reading the old list, new list, and installed list of RPMs, |
---|
67 | .B rpmupdate |
---|
68 | decides which packages to erase, install, and update according to |
---|
69 | either the public or private workstation rules. The public |
---|
70 | workstation rules are: |
---|
71 | .IP * |
---|
72 | If a locally installed package is not at the same epoch, version, and |
---|
73 | release as the package in the new list, the package in the new list is |
---|
74 | installed. |
---|
75 | .IP * |
---|
76 | If a locally installed package is not present in the new list, the |
---|
77 | package is removed. |
---|
78 | .PP |
---|
79 | The private workstation rules are: |
---|
80 | .IP * |
---|
81 | If a locally installed package is at the same epoch, version, and |
---|
82 | release as the package in the old list, or if a package is present in |
---|
83 | the new list but is not locally installed and is not present in the |
---|
84 | old list, apply the public workstation rules to this package. |
---|
85 | .IP * |
---|
86 | If the new list contains an upgrade for a locally installed package, |
---|
87 | install the upgrade. |
---|
88 | .PP |
---|
89 | Thus, on private workstations, packages which are in sync with the |
---|
90 | existing release will remain in sync with the new release, but a |
---|
91 | package from the release list which has been erased on a private |
---|
92 | workstation will stay erased, a package which has been locally |
---|
93 | upgraded will stay upgraded until the release has a newer version |
---|
94 | available, and a package which has been locally installed will stay |
---|
95 | installed. |
---|
96 | .SH "SEE ALSO" |
---|
97 | .BR update_ws (8) |
---|
98 | .SH AUTHOR |
---|
99 | Greg Hudson, MIT Information Systems |
---|
100 | .br |
---|
101 | Copyright 2000 by the Massachusetts Institute of Technology. |
---|