Update OpenBSD

Fonte: WikiPeida
Saltar para a navegação Saltar para a pesquisa

User

You need to add your local user to the wsrc and xobj groups.

user mod -G wsrc falso
user mod -G xobj falso

And create the directories with the correct group.

cd /usr
doas mkdir -p         src xenocara ports obj xobj
doas chown falso:wsrc src xenocara ports
doas chown build:wobj obj xobj
doas chmod 775        src xenocara ports obj xobj

And logout and login the user.

Update

using cvs

checkout

CVSROOT=anoncvs@anoncvs.fr.openbsd.org:/cvs
cd /usr
cvs -d$CVSROOT checkout -P src
cvs -d$CVSROOT checkout -P xenocara
cvs -d$CVSROOT checkout -P ports

update

CVSROOT=anoncvs@anoncvs.fr.openbsd.org:/cvs
cd /usr/src
cvs -d$CVSROOT up -rHEAD -Pd
cd /usr/ports
cvs -d$CVSROOT up -rHEAD -Pd
cd /usr/xenocara
cvs -d$CVSROOT up -rHEAD -Pd

using github mirror

checkout

cd /usr
git clone https://github.com/openbsd/src.git
git clone https://github.com/openbsd/xenocara.git
git clone https://github.com/openbsd/ports.git

update

cd /usr/src
git pull
cd /usr/xenocara
git pull
cd /usr/ports
git pull

Build

kernel

cd /usr/src/sys/arch/`uname -m`/compile/GENERIC.MP
doas make obj
doas make config
doas make -j4
doas make install

userland

doas rm -rf /usr/obj/*
cd /usr/src
make obj
cd /usr/src/etc && doas env DESTDIR=/ make distrib-dirs
cd /usr/src
doas make -j4 build

xenocara

# doas rm -rf /usr/xobj/*
cd /usr/xenocara
doas make bootstrap
make obj
doas make -j4 build

sysmerge

doas sysmerge

Ports

doas pkg_add -ui