diff --git a/src/posts/2019-04-27_Manage_dotfiles_with_git.pm b/src/posts/2019-04-27_Manage_dotfiles_with_git.pm index c6752f2..1ca81d0 100644 --- a/src/posts/2019-04-27_Manage_dotfiles_with_git.pm +++ b/src/posts/2019-04-27_Manage_dotfiles_with_git.pm @@ -90,3 +90,4 @@ I'm maintaining a "work branch" on top of my "main" (private) branch. This work branch even has a different upstream (corporate git repository at work). But I'm still able to access changes I made to my private git repository and merge them as I like (or vise versa). +* 2023-11-06: diff --git a/src/posts/2023-11-06-OpenBSD_First_Steps.draft.pm b/src/posts/2023-11-06-OpenBSD_First_Steps.draft.pm new file mode 100644 index 0000000..2935e02 --- /dev/null +++ b/src/posts/2023-11-06-OpenBSD_First_Steps.draft.pm @@ -0,0 +1,81 @@ +# OpenBSD First Steps + +Note, each of the commands comes with a man page, which I encourage you to read. This post is merely to get you started. Also note, that there is [afterboot(8)](https://man.openbsd.org/afterboot). + +## Base System + +### Upgrade the base system (will reboot) + +``` +# sysupgrade +``` + +### Update base system configuration after upgrade + +``` +# sysmerge +``` + +### Update (patch) base system + +``` +# syspatch +``` + +### Update firmware + +This does not need to be run manually. It's only relevant when do install hardware that needs a firmware which was not present during the installation or the last upgrade. + +``` +# fw_update +``` + +## Add On Package System + +### Search for a package + +``` +# pkg_info -Q xfce +``` + +### Install a package + +``` +# pkg_add xfce +``` + +### Uninstall a package + +``` +# pkg_delete xfce +# pkg_delete -c xfce # also remove configuration +``` + +### Deinstall leftover dependencies + +``` +# pkg_delete -a +# pkg_delete -ac # also remove configuration +``` + +### Update packages + +``` +# pkg_add -u +``` + +### Check/repair package database + +If you don't know the answers to pkg_checks questions, deinstalling and reinstalling the package in question usually solves the problem. + +``` +# pkg_check +``` + +### Deinstall all packages on the system +``` +# pkg_delete -X +``` + + +