You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-81Lines changed: 24 additions & 81 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,34 +150,41 @@ $ swiftbox upgrade
150
150
Successfully upgraded swiftbox from 0.12 to 0.12.2
151
151
```
152
152
153
+
> `swiftbox` doesn't have a stable upgrading interface until 0.12.2. Users running `swiftbox` 0.12.1 and earlier are recommended to do a fresh installation to receive latest updates:
swiftbox: Use Swift out of the Box on Ubuntu, CentOS(RHEL) and Amazon Linux
162
-
163
171
Usage: swiftbox [option]
164
172
swiftbox [command] ...
165
-
166
173
Options:
167
-
-v Show swiftbox version
168
-
-h Show help page
169
-
174
+
-v, --versionShow swiftbox and system (alias) version
175
+
-s, --short Show only swiftbox version
176
+
-h, --help Show help page
170
177
Commands:
171
-
check <version> Check the availability of Swift <version>
172
-
nightly Check the availability of Swift nightly builds
173
-
get <version> Get Swift <version> from swift.org
174
-
nightly Get the latest nightly build from swift.org
175
-
list List Swift versions on the computer
176
-
use <version> Select Swift <version> as default
177
-
remove <version> Remove swift <version> from the computer
178
-
close Disable Swift managed by swiftbox
179
-
cleanup Clear swiftbox download cache
180
-
upgrade Upgrade swiftbox to the latest version
178
+
check <version> Check the availability of Swift <version>
179
+
nightly Check the availability of Swift nightly builds
180
+
get <version> Get Swift <version> from swift.org
181
+
nightly Get the latest nightly build from swift.org
182
+
list List Swift versions on the computer
183
+
use <version> Select Swift <version> as default
184
+
remove <version> Remove swift <version> from the computer
185
+
close Disable Swift managed by swiftbox
186
+
cleanup Clear swiftbox download cache
187
+
upgrade Upgrade swiftbox to the latest version
181
188
```
182
189
183
190
## Advanced Usage
@@ -186,7 +193,7 @@ Commands:
186
193
187
194
Since Ubuntu has non-LTS versions and they may be (partially) compatible with toolchains built for LTS versions, `swiftbox` provides built-in system version alias support from version 0.12.3 (see [#1](https://github.com/stevapple/swiftbox/pull/1)).
188
195
189
-
`swiftbox` allows long-term alias by specifying the version in `.system-alias` file in its working directory. The aliased version will be displayed in `swiftbox -v` output.
196
+
`swiftbox` allows permanent alias by specifying the version in `.system-alias` file in its working directory. The aliased version will be displayed in `swiftbox -v` output.
190
197
191
198
```console
192
199
$ echo"20.04">~/.swiftbox/.system-alias
@@ -197,73 +204,9 @@ Swift 5.2.4 is available for Ubuntu 20.04
197
204
You can get it with: swiftbox get 5.2.4
198
205
```
199
206
200
-
For one-time alias, use environmental variable `$SWIFTBOX_SYSALIAS` instead:
207
+
For temporary alias, use environmental variable `$SWIFTBOX_SYSALIAS` instead:
201
208
202
209
```console
203
210
$ export SWIFTBOX_SYSALIAS="20.04"
204
211
$ swiftbox get 5.2.4
205
212
```
206
-
207
-
## Known Issues of Upgrading
208
-
209
-
### Version < 0.11
210
-
211
-
Users of these versions should do a fresh installation for the upgrade.
212
-
213
-
You can use one of the following ways:
214
-
215
-
```console
216
-
$ swiftbox update
217
-
swiftbox 0.9 is already installed in /usr/bin
218
-
Input 'yes' or 'y' to upgrade, anything else to do a fresh installation: n
219
-
```
220
-
221
-
```console
222
-
$ sudo rm /usr/bin/swiftbox
223
-
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/stevapple/swiftbox/master/install.sh)"
0 commit comments