All Projects → qbit → Snap

qbit / Snap

Licence: isc
OpenBSD upgrade tool (OpenBSD,Shell)

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Snap

Htop
htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
Stars: ✭ 5,626 (+6015.22%)
Mutual labels:  openbsd
Meta Data
meta-data datasource for OpenBSD vmd(8)
Stars: ✭ 20 (-78.26%)
Mutual labels:  openbsd
Vpn At Home
1-click, self-hosted deployment of OpenVPN with DNS ad blocking sinkhole
Stars: ✭ 1,106 (+1102.17%)
Mutual labels:  openbsd
Solo5
A sandboxed execution environment for unikernels
Stars: ✭ 659 (+616.3%)
Mutual labels:  openbsd
Dank Selfhosted
Automated solution for hosting email, web, DNS, XMPP, and ZNC on OpenBSD.
Stars: ✭ 800 (+769.57%)
Mutual labels:  openbsd
Awesome Unix
All the UNIX and UNIX-Like: Linux, BSD, macOS, Illumos, 9front, and more.
Stars: ✭ 973 (+957.61%)
Mutual labels:  openbsd
Persepolis
Persepolis Download Manager is a GUI for aria2.
Stars: ✭ 5,218 (+5571.74%)
Mutual labels:  openbsd
Qtfm
Qt File Manager
Stars: ✭ 73 (-20.65%)
Mutual labels:  openbsd
Arcan
Arcan - [Display Server, Multimedia Framework, Game Engine] -> "Desktop Engine"
Stars: ✭ 885 (+861.96%)
Mutual labels:  openbsd
O
🌀 Text editor suitable for writing git commit messages and editing Markdown files. Can build executables and jump to errors at the press of `ctrl-space`, for several programming languages. Can format code with `ctrl-w`. Provides general syntax highlighting, rainbow parenthesis and cut/paste portals. o is intentionally limited to VT100.
Stars: ✭ 54 (-41.3%)
Mutual labels:  openbsd
Dbxfs
User-space file system for Dropbox
Stars: ✭ 673 (+631.52%)
Mutual labels:  openbsd
Caesonia
OpenBSD Email Service
Stars: ✭ 761 (+727.17%)
Mutual labels:  openbsd
Login otp
OTP authentication for OpenBSD implementing RFC 6238 and RFC 4226.
Stars: ✭ 43 (-53.26%)
Mutual labels:  openbsd
Pyroute2
Python Netlink and PF_ROUTE library — network setup and monitoring
Stars: ✭ 658 (+615.22%)
Mutual labels:  openbsd
Ruby Vmstat
A focused and fast library to gather memory, cpu, network, load avg and disk information
Stars: ✭ 68 (-26.09%)
Mutual labels:  openbsd
Rdrview
Firefox Reader View as a command line tool
Stars: ✭ 622 (+576.09%)
Mutual labels:  openbsd
Obsd
Redacted config files
Stars: ✭ 34 (-63.04%)
Mutual labels:  openbsd
Openbsd Cookbooks
Setup environment in OpenBSD using Ansible playbook
Stars: ✭ 80 (-13.04%)
Mutual labels:  openbsd
Zapret
Обход DPI в linux
Stars: ✭ 1,148 (+1147.83%)
Mutual labels:  openbsd
Wasmjit
Small Embeddable WebAssembly Runtime
Stars: ✭ 1,063 (+1055.43%)
Mutual labels:  openbsd

SNAP(8) - System Manager's Manual

NAME

snap - snapshot upgrade tool

SYNOPSIS

snap [-bBcdDehiIkKmMnrRsSuUvWx] [-b [boot device]] [-c [config_file]] [-D [destination]] [-m [machine]] [-M [mirror]] [-V [version]] [-s [pubkey]]

DESCRIPTION

snap is a ksh(1) script designed to upgrade an OpenBSD machine to the latest snapshot available. Upgrading from release to release is not supported.

snap checks the `BUILDINFO` file located on the remote mirror, and will warn you if the snapshot is not newer than the currently running version.

By default snap verifies signatures for the set files it downloads. This can be prevented by specifying the -S option, however, skipping verification is very much not recommended!

The options are as follows:

-D destination

Destination directory to place the `.tgz` files.

-S

Skip signature verification. This is not recommended!

-c config_file

Location of configuration file (default is /etc/snap.conf or $HOME/.snaprc ).

-e

Extract sets into destination directory and exit. The destination directory can be overwritten by the -D option, or by setting the DST line in config_file.

-d

Download sets to the destination directory, verify ( -S prevents signature verification) and exit. By default the destination directory is set to /tmp/upgrade

-m machine

Use machine instead of what the `machine` command returns.

-V setversion

Use to specify a specific version of sets. This option will need to be used when there is a version jump, say from 6.0 to 6.1.

-r

Run sysmerge after extracting {x}sets. This option may cause issues if the newer snapshot introduces ABI changes. Not recommended.

-x

Do not extract x11 sets.

-M mirror

Specify which mirror to use.

-I sigfile

Verify integrity of the snap tool. If sigfile is omitted, snap will pull a copy of SHA256.sig from the GitHub page.

-s pubkey

Signify pub key to do verification with.

-i

Run in interactive mode (has colors).

-n

Force snap to install bsd.mp as /bsd

-k

Only install the kernels and exit.

-B

Prevent snap from making a backup of the kernel files.

-u

Check for update to the snap script.

-U

Download and install the latest version of snap (will overwrite currently installed version). Signature verification is also done.

-b device

Tells snap which device to install bootstrap on.

-R

Reboot after running snap

-h

Help.

FILES

$HOME/.last_snap

Contains timestamp of the previous snapshot.

/etc/snap.conf

Global configuration options. See SNAPRC for more information on these options.

$HOME/.snaprc

User specific configuration options.

SNAPRC

snap supports the following configuration options via /etc/snap.conf or $HOME/.snaprc file:

INTERACTIVE bool

If true, snap will operate as if -i was specified. Defaults to false.

DST directory

Tells snap where to download the snapshot sets and signature files. Defaults to /tmp/upgrade

EXTRACT_ONLY bool

Tells snap to exit after extracting the sets. Defaults to false.

FTP_OPTS string

Lets you overwrite the options passed to ftp(1). This can be handy if your mirror supports file continuation! Defaults to: " -V ".

See ftp(1) for options.

MERGE bool

Tells snap to merge files in /etc using the sysmerge(8) utility. Defaults to false.

NO_X11 bool

Tells snap to forgo download and extraction of xsets. Defaults to false.

REBOOT bool

Setting this to `true` will cause snap to reboot the system after successful extraction of sets. Defaults to false.

AFTER script

Specifies a script to be copied to /etc/rc.firsttime. The script will then be executed upon successful reboot. Default is not set.

MIRROR string

Defaults to `cdn.openbsd.org`.

EXAMPLES

EXAMPLE USAGE

To upgrade to the latest snapshot:

$ doas snap

To upgrade to the latest snapshot using an explicit mirror region:

$ doas snap -M cdn.openbsd.org

To upgrade to a snapshot without updating xsets:

$ doas snap -x

EXAMPLE SNAPRC

A typical ~/.snaprc would look something like this:

INTERACTIVE:true
MERGE:true
AFTER:/etc/after_snap
MIRROR:cdn.openbsd.org
FTP_OPTS:-C -V

EXAMPLE AFTER SCRIPT

Here is an `AFTER` script that makes sure we have the latest devices in /dev, upgrades all the firmware currently installed and upgrades currently installed packages:

#!/bin/sh
(
    cd /dev && sh MAKEDEV all
    /usr/sbin/fw_update -v
    /usr/sbin/pkg_add -uVm # -m is needed to see progress in this context
)

SIGNATURE VERIFICATION

snap can be verified using the signify utility.

Public key

untrusted comment: github.com/qbit/snap public key
RWQVGN6sUjQQA5uYpANGLLKQMAERZ43otLePFSVqNFGGtf/qBez7G1WU

SIGNATURE URL

https://raw.githubusercontent.com/qbit/snap/master/SHA256.sig

After installing the above public key in /etc/signify/snap.pub and downloading the SHA256.sig file, you can verify snap by running one the following:

Have snap download the SHA256.sig file and run verification:

$ snap -I

Have snap verify a pre-downloaded SHA256.sig file:

$ snap -I SHA256.sig

Manual verification with the signify utility:

$ signify -C -p /etc/signify/snap.pub -x SHA256.sig snap

SEE ALSO

ftp(1), signify(1), installboot(8), rc(8), release(8), sysmerge(8)

HISTORY

The first version of snap was released in September of 2012.

AUTHORS

snap was written by Aaron Bieber <[email protected]>.

OpenBSD 6.4 - September 19, 2012

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].