Obtaining NetBSD binary sets, kernel and source code

grab | kernel | cross | world | tweak

Binary

Grab the latest release or current build and necessary sets (no X11 required)

    cd /data/kernels/

    nmap -p 873 rsync.fr.netbsd.org
    nmap -p 873 rsync.fr.netbsd.org -sU

    #sets=rsync://rsync.fr.netbsd.org/NetBSD/NetBSD-9.0/amd64/binary/sets
    #sets=rsync://rsync.fr.netbsd.org/NetBSD-daily/netbsd-9/latest/amd64/binary/sets
sets=rsync://rsync.fr.netbsd.org/NetBSD-daily/HEAD/latest/amd64/binary/sets

    #rsync -avz --delete --exclude 'x*.tar.xz' $sets/ netbsd9/
    rsync -avz --delete --exclude 'x*.tar.xz' $sets/ netbsd-current/

See the PXE // NetBSD guide for daily tracking of the binaries.

And get the necessary kernels for XEN/PV and XEN/PVH. INSTALL can be useful for rescue mode.

#cd netbsd9/
cd netbsd-current/

#mirror=http://ftp.fr.netbsd.org/pub/NetBSD/NetBSD-9.0/amd64
#mirror=http://ftp.fr.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/amd64
mirror=http://ftp.fr.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64

# PV
wget $mirror/binary/kernel/netbsd-XEN3_DOMU.gz
wget $mirror/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz

# PVH
wget $mirror/binary/kernel/netbsd-GENERIC.gz
wget $mirror/binary/kernel/netbsd-GENERIC_KASLR.gz
wget $mirror/binary/kernel/netbsd-INSTALL.gz

Source

slackware

slackpkg search libarchive

release

grab the kernel sources

cd /var/tmp/
mirror=https://...

wget $mirror/pub/NetBSD-daily/netbsd-9/latest/source/sets/syssrc.tgz
wget $mirror/pub/NetBSD-daily/netbsd-9/latest/source/sets/src.tgz
wget $mirror/pub/NetBSD-daily/netbsd-9/latest/source/sets/sharesrc.tgz
wget $mirror/pub/NetBSD-daily/netbsd-9/latest/source/sets/gnusrc.tgz

extract on netbsd

progress -zf src.tgz tar xf - -C /
progress -zf sharesrc.tgz tar xf - -C /
progress -zf gnusrc.tgz tar xf - -C /

or on linux

bsdtar xzf syssrc.tgz -C /var/tmp/
bsdtar xzf src.tgz -C /var/tmp/
bsdtar xzf sharesrc.tgz -C /var/tmp/
bsdtar xzf gnusrc.tgz -C /var/tmp/

current

cd /var/tmp/
mirror=https://...

wget $mirror/pub/NetBSD/NetBSD-current/tar_files/src.tar.gz

extract on netbsd

progress -zf src.tar.gz xf -

extract on slackware

time bsdtar xzf src.tar.gz

–or–

export CVSROOT="anoncvs@anoncvs.fr.NetBSD.org:/cvsroot"
export CVS_RSH="ssh"
cvs -q -z9 checkout src

cd /usr/src/
cvs -q -z9 up -dP

Resources

binary

NetBSD Mirror Sites https://www.netbsd.org/mirrors/

source

https://www.netbsd.org/docs/pkgsrc/tools.html

https://www.netbsd.org/docs/guide/en/chap-build.html

https://www.netbsd.org/docs/guide/en/chap-kernel.html


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | NU | HTML5
Copyright © 2022 Pierre-Philipp Braun