$ su -l
# echo "https://www.mirrorservice.org/pub/OpenBSD" >> /etc/installurl
$ pkg_info -Q <package>
$ pkg_info -Q ebook
$ pkg_info | grep <keyword>
$ pkg_info -f <package>
$ pkg_info -f lsdvd | grep '^@depend' | cut -f 3 -d :
# pkg_add <package>
# pkg_add -a <package>
(To upgrade use -u, -i for interactive and -v for verbose output)
# pkg_add -Uuv
# pkg_add -u <package>
# pkg_delete <package>
$ pkg_info -sa | paste - - - - | sort -n -k 5 | awk '{ NF=$NF/1024/1024 ; print }'
$ pkg_info -a -s | sed '/^$/d' | paste - - | sort -k 5 -n -r | sed 's/^Information for inst://g' | awk '{print $3 "\t\t" $1};' | gnumfmt --to=si