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

A critical look at NetBSD’s installer

20 years of NetBSD code bloat

HardenedBSD Feature Comparison with OpenBSD, FreeBSD, NetBSD

NetBSD 10.x Kernel Math_emulation

NetBSD on a JavaStation

EuroBSDcon 2024: Some notes after the conference

From Linux to BSD

Change Linux to NetBSD with SSH only

A NetBSD/amd64 guest can now boot in 18ms

Deb

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

https://ubuntu.com

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. 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

https://fedoraproject.org

./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

https://netbsd.org

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. 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

Installing OpenBSD:

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. 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

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. 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