Update 2023-11-06 08:04:38

This commit is contained in:
c0dev0id 2023-11-06 08:04:39 +01:00
parent 98271cdd41
commit c42d6ec7c7
2 changed files with 82 additions and 0 deletions

View File

@ -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:

View File

@ -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
```