Archive for fevereiro 2015

Step 1: Download the sources

# cd /usr
# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_5_6 -P src

for current:

# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src

ps. If you have the source just run:

# cd /usr/src
# cvs -q up -rOPENBSD_5_6 -Pd

for current:

# cvs -q up -Pd

 

Step 2: Rebuild the kernel and reboot with the new kernel

# cd /usr/src/sys/arch/amd64/conf
# /usr/sbin/config GENERIC
# cd /usr/src/sys/arch/amd64/compile/GENERIC
# make clean && make

Replace amd64 with your architecture, e.g. sparc, alpha, etc. Replace GENERIC with GENERIC.MP for multiprocessor systems.

# cd /usr/src/sys/arch/amd64/compile/GENERIC
# make install          (Safely install new kernel)
# reboot

 

Step 3: Rebuilding the binaries 

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