Fix typo in bos_create manpage
[openafs.git] / doc / man-pages / pod8 / bos_install.pod
1 =head1 NAME
2
3 bos_install - Installs a new version of a binary file
4
5 =head1 SYNOPSIS
6
7 =for html
8 <div class="synopsis">
9
10 B<bos install> S<<< B<-server> <I<machine name>> >>> S<<< B<-file> <I<files to install>>+ >>>
11     S<<< [B<-dir> <I<destination dir>>] >>> S<<< [B<-cell> <I<cell name>>] >>>
12     [B<-noauth>] [B<-localauth>] [B<-help>]
13
14 B<bos i> S<<< B<-s> <I<machine name>> >>> S<<< B<-f> <I<files to install>>+ >>>
15     S<<< [B<-d> <I<destination dir>>] >>> S<<< [B<-c> <I<cell name>>] >>> [B<-n>]
16     [B<-l>] [B<-h>]
17
18 =for html
19 </div>
20
21 =head1 DESCRIPTION
22
23 The B<bos install> command copies each binary file specified with the
24 B<-file> argument to the local disk of the server machine named by the
25 B<-server> argument, which is normally the binary distribution machine for
26 its CPU/operating system type. The destination directory is
27 F</usr/afs/bin> unless the B<-dir> argument indicates an alternate
28 directory. The source file's UNIX mode bits are preserved in the transfer.
29
30 If there is already a file of the same name in the destination directory,
31 the BOS Server automatically saves it by adding a C<.BAK> extension. If
32 there is a current C<.BAK> version at least seven days old, it replaces
33 the current C<.OLD> version. If there is no current C<.OLD> version, the
34 current C<.BAK> version becomes the C<.OLD> version automatically. The
35 B<bos getdate> command displays the timestamps on the current versions of
36 the file.
37
38 To start using the new binary immediately, issue the bos restart
39 command. Otherwise, the BOS Server automatically restarts the process at
40 the time defined in the F</usr/afs/local/BosConfig> file; use the B<bos
41 getrestart> command to display the time and the B<bos setrestart> time to
42 set it.
43
44 =head1 OPTIONS
45
46 =over 4
47
48 =item B<-server> <I<machine name>>
49
50 Indicates the binary distribution machine on which to install the new
51 binaries. Identify the machine by IP address or its host name (either
52 fully-qualified or abbreviated unambiguously). For details, see L<bos(8)>.
53
54 If the machine is not a binary distribution machine and is running an
55 C<upclientbin> process, then the files are overwritten the next time the
56 C<upclientbin> process fetches the corresponding file from the
57 distribution machine (by default within five minutes).
58
59 =item B<-file> <I<files to install>>+
60
61 Specifies the complete pathname of each binary file to copy into the
62 destination directory. Each source directory can be on the local disk or
63 in AFS, in which case the issuer of the B<bos install> command must have
64 the necessary AFS access rights and the local machine must run the Cache
65 Manager. For the BOS Server to create C<.BAK> and C<.OLD> versions, the
66 last element in the pathname (the filename) must match the name of a file
67 in the destination directory.  L<bos_create(8)> lists the standard binary
68 file names.
69
70 =item B<-dir> <I<destination dir>>
71
72 Provides the complete pathname of the local disk directory in which to
73 install binary files. It is necessary only if the destination directory
74 is not F</usr/afs/bin>.
75
76 =item B<-cell> <I<cell name>>
77
78 Names the cell in which to run the command. Do not combine this argument
79 with the B<-localauth> flag. For more details, see L<bos(8)>.
80
81 =item B<-noauth>
82
83 Assigns the unprivileged identity C<anonymous> to the issuer. Do not
84 combine this flag with the B<-localauth> flag. For more details, see
85 L<bos(8)>.
86
87 =item B<-localauth>
88
89 Constructs a server ticket using a key from the local
90 F</usr/afs/etc/KeyFile> file. The B<bos> command interpreter presents the
91 ticket to the BOS Server during mutual authentication. Do not combine this
92 flag with the B<-cell> or B<-noauth> options. For more details, see
93 L<bos(8)>.
94
95 =item B<-help>
96
97 Prints the online help for this command. All other valid options are
98 ignored.
99
100 =back
101
102 =head1 EXAMPLES
103
104 The following command copies the file
105 F</afs/abc.com/rs_aix42/usr/afs/bin/vlserver> to the file
106 F</usr/afs/bin/vlserver> on the machine C<fs3.abc.com>, which is the
107 binary distribution machine for server machines running AIX 4.2 in the
108 C<abc.com> cell. The current version of the F</usr/afs/bin/vlserver> file
109 is moved to F</usr/afs/bin/vlserver.BAK>.
110
111    % bos install -server fs3.abc.com \
112                  -file /afs/abc.com/rs_aix42/usr/afs/bin/vlserver
113
114 =head1 PRIVILEGE REQUIRED
115
116 The issuer must be listed in the F</usr/afs/etc/UserList> file on the
117 machine named by the B<-server> argument, or must be logged onto a server
118 machine as the local superuser C<root> if the B<-localauth> flag is
119 included.
120
121 The B<bos install> command cannot be run against servers which are in
122 restricted mode.
123
124 =head1 SEE ALSO
125
126 L<BosConfig(5)>,
127 L<KeyFile(5)>,
128 L<UserList(5)>,
129 L<bos(8)>,
130 L<bos_getdate(8)>,
131 L<bos_getrestart(8)>,
132 L<bos_restart(8)>,
133 L<bos_setrestart(8)>
134
135 =head1 COPYRIGHT
136
137 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
138
139 This documentation is covered by the IBM Public License Version 1.0.  It was
140 converted from HTML to POD by software written by Chas Williams and Russ
141 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.