Blame
Date:
Wed Oct 19 19:41:55 2016 UTC
Message:
1.0.1 release
01
2016-05-15
dev1
# Snaps
02
2015-05-06
f
03
2016-05-15
dev1
An admin utility designed for the [OpenBSD operating system](http://www.openbsd.org) and published under the BSD licence.
04
2015-05-06
f
05
2016-05-15
dev1
## Purpose
06
2016-05-15
dev1
07
2016-05-15
dev1
It is made for users who use [-current](https://www.openbsd.org/faq/current.html) and jump from snapshot to snapshot.
08
2016-05-15
dev1
09
2016-05-15
dev1
It will help you to download the needed bsd.rd, check it and move it to the right place before rebooting.
10
2016-05-15
dev1
A backup of your last bsd.rd is made. All steps are verbose.
11
2016-05-15
dev1
12
2016-10-15
dev1
It can be run with only the base system. Nevertheless if you install *curl*
13
2016-10-15
dev1
from packages, it will check your $MIRROR build date of base and packages. You
14
2016-10-15
dev1
will be able to decide if you want to do the update now or wait for the
15
2016-10-15
dev1
synchronicity of the two directories.
16
2016-10-15
dev1
17
2016-05-15
dev1
## Usage
18
2016-05-15
dev1
19
2016-05-15
dev1
Snaps will use your `/etc/pkg.conf` file to setup automatically the `$MIRROR` variable.
20
2016-05-15
dev1
21
2016-05-15
dev1
You can also want to setup this variable manually:
22
2016-05-15
dev1
23
2016-05-15
dev1
```
24
2016-10-15
dev1
$ doas MIRROR=http://another/openbsd/mirror snaps -G
25
2016-05-15
dev1
```
26
2016-05-15
dev1
27
2016-10-15
dev1
Note that you just have to indicate the root of the MIRROR. This one
28
2016-10-15
dev1
have to follow the OpenBSD [directory layout](http://www.openbsd.org/ftp.html#layout).
29
2016-10-15
dev1
30
2016-05-15
dev1
### -g
31
2016-05-15
dev1
32
2016-05-15
dev1
Fetch and check (SHA256 and signify) bsd.rd from $MIRROR (no need to be root for that one)
33
2016-05-15
dev1
34
2016-05-15
dev1
```
35
2016-05-15
dev1
$ snaps -g
36
2016-05-15
dev1
```
37
2016-05-15
dev1
38
2016-05-15
dev1
### -G
39
2016-05-15
dev1
40
2016-05-15
dev1
Fetch, check bsd.rd from $MIRROR then, move it to the right place, backup your last bsd.rd, print some reminders and reboot.
41
2016-05-15
dev1
42
2016-05-15
dev1
```
43
2016-05-15
dev1
$ doas snaps -G
44
2016-05-15
dev1
```
45
2016-05-15
dev1
46
2016-09-11
dev1
### -p
47
2016-09-11
dev1
48
2016-09-11
dev1
Update your -current port tree
49
2016-09-11
dev1
50
2016-09-11
dev1
```
51
2016-09-11
dev1
$ doas snaps -p
52
2016-09-11
dev1
```
53
2016-09-11
dev1
54
2016-05-15
dev1
### -l
55
2016-05-15
dev1
56
2016-10-15
dev1
List date and download places of the 3 last -G from /var/log/snaps.log
57
2016-05-15
dev1
58
2016-05-15
dev1
```
59
2016-05-15
dev1
$ snaps -l
60
2016-05-15
dev1
2016-04-30 22:16 FROM http://ftp.fr.openbsd.org/pub/OpenBSD/snapshots/amd64/
61
2016-05-15
dev1
2016-05-10 11:03 FROM http://mirrors.ircam.fr/pub/OpenBSD/snapshots/amd64/
62
2016-05-15
dev1
2016-05-14 11:11 FROM http://ftp.fr.openbsd.org/pub/OpenBSD/snapshots/amd64/
63
2016-05-15
dev1
```
64
2016-05-15
dev1
65
2016-09-11
dev1
### -u
66
2016-06-11
dev1
67
2016-09-11
dev1
Upgrade snaps to the last release.
68
2016-06-11
dev1
69
2016-06-11
dev1
```
70
2016-09-11
dev1
$ doas snaps -u
71
2016-06-11
dev1
```
72
2016-06-11
dev1
73
2016-05-15
dev1
### -h
74
2016-05-15
dev1
75
2016-05-15
dev1
Print help and exit. It also print the content of the MIRROR variable based upon /etc/pkg.conf for a quick look.
76
2016-05-15
dev1
77
2016-05-15
dev1
```
78
2016-05-15
dev1
$ snaps -h
79
2016-05-15
dev1
```
Frédéric Galusik