Obtaining NetBSD binaries

grab-binary | grab-source | kernel | cross | world | tweak

By means of ftp / http / https

define a destination folder

mkdir -p /data/kernels/netbsd92/
cd /data/kernels/netbsd92/

    mkdir -p /data/kernels/netbsd-current/
    cd /data/kernels/netbsd-current/

define a mirror

lftp -e ls ftp.fr.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/
mirror=ftp.fr.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64
echo -e mirror that was used\\n$mirror\\n > README-MIRROR

kernel

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

for kernel in \
    netbsd-XEN3_DOMU \
    netbsd-INSTALL_XEN3_DOMU \
    netbsd-GENERIC \
    netbsd-INSTALL \
    ; do
    echo -n fetching $kernel ...
    wget -q $mirror/binary/kernel/$kernel.gz && echo done
done
unset kernel

# netbsd-GENERIC_KASLR \

sets

for set in base comp etc man misc modules text; do
    echo -n fetching $set...
    wget -q $mirror/binary/sets/$set.tar.xz && echo done
done
unset set

By means of rsync

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.

Resources

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


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