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