Obtaining NetBSD binaries

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

handy variables

rel=10.0_RC5/
rl=100

HTTP(S)

mirror=https://cdn.netbsd.org/pub/NetBSD/NetBSD-$rel/amd64/

kernel

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

mkdir /data/kernels/netbsd$rl/
cd /data/kernels/netbsd$rl/

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

# netbsd-GENERIC_KASLR.gz \

sets

mkdir /data/netbsd$rl/
cd /data/netbsd$rl/

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

RSYNC

kernel and sets

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.

FTP

full release

define a destination folder

mkdir -p /data/kernels/netbsd$rl/
cd /data/kernels/netbsd$rl/

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

Resources

https://www.netbsd.org/mirrors/


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