BSD - howinfo/howinfo GitHub Wiki
Package management for FreeDOS/Linux/BSD
CLI args
"$@"
adds all cli arguments
$1
is first argument
$2
is 2nd argument
Awesome BSD
FreeBSD
- Poudriere Inside FreeBSD VNET Jail
A critical look at NetBSD’s installer
- https://eerielinux.wordpress.com/2025/05/31/installing-bsd-in-2025-part-3-a-critical-look-at-netbsds-installer/
- https://news.ycombinator.com/item?id=44176919
20 years of NetBSD code bloat
- http://kristerw.blogspot.com/2016/05/20-years-of-netbsd-code-bloat.html
- https://news.ycombinator.com/item?id=44085341
HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD
- https://hardenedbsd.org/content/easy-feature-comparison
- https://news.ycombinator.com/item?id=42036652
NetBSD 10.x Kernel Math_emulation
- https://mezzantrop.wordpress.com/2025/02/04/netbsd-10-x-kernel-math_emulation/
- https://news.ycombinator.com/item?id=43950709
NetBSD on a JavaStation
- https://fatsquirrel.org/oldfartsalmanac/netbsd-on-a-javastation/
- https://news.ycombinator.com/item?id=43262188
EuroBSDcon 2024: Some notes after the conference
- https://blog.netbsd.org/tnf/entry/eurobsdcon_2024_in_dublin_ireland
- https://news.ycombinator.com/item?id=41769346
From Linux to BSD
- FreeBSD fans rally round zVault upstart
- Switching customers from Linux to BSD because boring is good
- A Journey from Linux to FreeBSD
Change Linux to NetBSD with SSH only
A NetBSD/amd64 guest can now boot in 18ms
- https://old.reddit.com/r/BSD/comments/197vfmq/a_netbsdamd64_guest_can_now_boot_in_40ms_details/
- https://news.ycombinator.com/item?id=39015036
Deb
- https://people.debian.org/~nthykier/blog/2023/a-new-debian-package-helper-debputy.html
- https://news.ycombinator.com/item?id=39173031
Killing VirtualBox that is stuck
./killvm.sh
killall VirtualBox VirtualBoxVM
AlpineLinux
./update.sh
apk upgrade
./install.sh
apk add "$@"
./uninstall.sh
apk del "$@"
./dev.sh (compiler packages, like "sudo apt install build-essential")
apk add alpine-sdk
FreeDOS
Ubuntu
- Edit file:
nano update.sh
- Save and Exit: Ctrl-o Enter Ctrl-x Enter
- Change to executeable:
chmod +x *.sh
- Update:
./update.sh
./more-package-managers.sh
sudo apt -y install flatpak gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo apt -y install snapd
sudo reboot
./update.sh
sudo apt update
sudo apt -y dist-upgrade
sudo snap refresh
flatpak update
./release-info.sh
uname -a
cat /etc/issue
./release-upgrade.sh as normal user (not root)
do-release-upgrade
./search.sh
sudo apt-cache search "$@"
./clean.sh
sudo apt clean
sudo apt -y autoclean
sudo apt -y autoremove
./install.sh
sudo apt -y install "$@"
./uninstall.sh
sudo apt remove "$@"
./uninstall-all.sh
# more dangerous, all configs and data:
sudo apt --purge remove "$@"
shutdown.sh
sudo shutdown --poweroff now
reboot.sh
sudo shutdown --reboot now
Fedora
./more-software.sh , change first line -fi to your language. Voikko is Finnish spellchecking, not for other languages.
sudo dnf install libreoffice-langpack-fi libreoffice-help-fi libreoffice-voikko \
libreoffice libreoffice-postgresql libreoffice-pdfimport libreoffice-writer2latex \
libreoffice-writer2xhtml libreoffice-filters \
lazarus zip unzip p7zip gimp inkscape keepassxc haxe zig \
gambas3 godot golang virt-manager qemu remmina
./update.sh
sudo dnf upgrade --refresh
./release-info.sh
cat /etc/fedora-release
./release-upgrade.sh 38
after above ./update.sh
and ./reboot.sh
https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever="$@"
./search.sh
sudo dnf search "$@"
./clean.sh
sudo dnf clean all
./install.sh
sudo dnf -y install "$@"
./uninstall.sh
sudo dnf remove "$@"
./uninstall-all.sh
# more dangerous, all related packages, configs and data:
sudo dnf erase "$@"
./shutdown.sh
sudo shutdown --h now
./reboot.sh
sudo reboot
NetBSD
- Edit file:
nano update.sh
- Save and Exit: Ctrl-o Enter Ctrl-x Enter
- Change to executeable:
chmod +x *.sh
- Update:
./update.sh
Package management: https://www.netbsd.org/docs/pkgsrc/using.html
Before these, change to root:
su
./update.sh
pkgin upgrade
./release-info.sh
uname -a
./release-upgrade.sh 9.3
after ./install.sh sysupgrade
https://www.netbsd.org/docs/guide/en/chap-upgrading.html
sysupgrade auto https://cdn.NetBSD.org/pub/NetBSD/NetBSD-$1/amd64
./search.sh
pkgin search "$@"
./install.sh
pkgin install "$@"
./uninstall.sh
pkg_delete "$@"
./shutdown.sh
/sbin/shutdown -p now
./reboot.sh
/sbin/reboot now
Installing locate
pkgin install findutils nano bash
updatedb
locate somefilename
File locations:
/usr/pkg/gnu/bin/updatedb
/usr/pkg/gnu/bin/locate
/usr/pkg/bin/bash
/usr/pkg/bin/nano
Changing above bash shell path with nano, for example to bash, for both root and username:
su
export EDITOR=/usr/pkg/bin/nano
chpass
chpass username
After changing default shells and saving, reboot.
Showing current paths:
echo $PATH
If some path is missing, and using bash, add it to ~/.bashrc
(for sh, to .shrc
)
export PATH=$PATH:/usr/pkg/gnu/bin:/usr/pkg/bin
Install KDE, that has some year and date, like kde_20240828
./search.sh kde | grep meta
./install.sh kde....
Install Firefox:
./install.sh firefox
NetBSD version of git
command has certificate errors. To be able to clone git repos, with Firefox download working git
command from https://cosmo.zip/pub/cosmos/zip/git.zip , unzip, and add those files to ~/bin
. This is part of cross-platform cosmos https://justine.lol/cosmo3/
Also add your ssh keys to ~.ssh
free.sh , showing amount of free RAM:
cat /proc/meminfo
OpenBSD
- https://www.openbsd.org
- https://www.openbsd.org/76.html
- https://news.ycombinator.com/item?id=41768497
- https://www.undeadly.org/cgi?action=article;sid=20240924105732
Installing OpenBSD:
- https://www.tumfatig.net/2024/openbsd-workstation-for-the-people/
- https://www.youtube.com/watch?v=4MMr9mDD2cw
- Edit file:
nano update.sh
- Save and Exit: Ctrl-o Enter Ctrl-x Enter
- Change to executeable:
chmod +x *.sh
- Update:
./update.sh
Package management: https://www.openbsd.org/faq/faq15.html
Before these, change to root:
su
./update.sh
pkg_add -u
./release-info.sh
uname -a
./release-upgrade.sh as root https://www.openbsd.org/faq/upgrade73.html
sysupgrade
./search.sh
pkg_info -Q "$@"
./install.sh
pkg_add "$@"
./uninstall.sh
pkg_delete "$@"
./shutdown.sh
halt -p
./reboot.sh
reboot
Not install KDE, too complex: https://rsadowski.de/posts/2024-01-09-openbsd-kde/
pkg_add kde kde_plasma kde_plasma_extra
Godot 4:
pkg_add godot4-editor
Godot 3:
pkg_add godot-tools
Pacman
Arch Linux, HyperbolaBSD, etc
- Edit file:
nano update.sh
- Save and Exit: Ctrl-o Enter Ctrl-x Enter
- Change to executeable:
chmod +x *.sh
- Update:
./update.sh
Package management: https://www.openbsd.org/faq/faq15.html
Before these, change to root:
su
./update.sh
pacman -Syuu
./search.sh
pacman -Ss "$@"
./install.sh
pacman -S "$@"
./uninstall.sh
pacman -R "$@"
Haiku
./update.sh
pkgman refresh
pkgman full-sync
pkgman update
./install.sh
pkgman install "$@"
./uninstall.sh
pkgman uninstall "$@"
./search.sh
pkgman search "$@"
./listrepos.sh
pkgman list-repos
./addrepo.sh
## Add repo URL
pkgman add-repo "$@"
./resolvedeps.sh
# packagename repository-url
pkgman resolve-dependencies $1 $2