This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
openbsd:ports [2019/11/22 13:58] jrmu created |
openbsd:ports [2019/12/23 05:39] (current) jrmu |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code> | <code> | ||
- | $ curl -L -O https://mirrors.sonic.net/pub/OpenBSD/6.6/ports.tar.gz | + | $ cd /tmp |
+ | $ ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/{ports.tar.gz,SHA256.sig} | ||
+ | $ signify -Cp /etc/signify/openbsd-$(uname -r | cut -c 1,3)-base.pub -x SHA256.sig ports.tar.gz | ||
</code> | </code> | ||
+ | |||
+ | If that returns OK, then the download was successful and valid. As root, run: | ||
+ | |||
+ | <code> | ||
+ | # cd /usr | ||
+ | # tar xzf /tmp/ports.tar.gz | ||
+ | </code> | ||
+ | |||
+ | To build a package from ports, | ||
+ | |||
+ | <code> | ||
+ | $ cd /usr/ports/<folder>/<package> | ||
+ | $ doas make install | ||
+ | </code> | ||
+ | |||
+ | (This last step is bad practice since building can be done without being root; only installation requires root privileges) |