Lock

Packages can be locked to prevent them from being inadvertently uninstalled or updated during updates. Locked packages are not updated, uninstalled or reinstalled.

This feature can be especially useful for certain TwinCAT Functions in order to prevent unwanted updates. Locking does not prevent someone with root rights from manipulating the files contained in the package.

Lock packages as follows:

1. Enter the command doas pkg lock <packagename> on the console.
docbook-1.5: lock this package? [y/N]: y
Locking docbook-1.5
2. Confirm the query with [y] to lock the package.
The package remains locked until you unlock it with the command doas pkg unlock <packagename>. You can display all locked packages with the command pkg lock -l.
Currently locked packages:
docbook-1.5