Files
cheatsheet-tldr/tldr/linux/paclock
2025-11-30 00:23:24 +00:00

30 lines
568 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# paclock
> Lock/unlock the libalpm database (used by `pacman`) to prevent or allow simultaneous package management operations.
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/paclock.pod>.
- Lock the database:
`sudo paclock`
- Write the lock file path to `stdout` (without locking the database):
`paclock --print`
- Unlock the database:
`sudo paclock --unlock`
- Display help:
`paclock --help`
- Display version:
`paclock --version`