mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
558 B
Plaintext
30 lines
558 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:
|
|
|
|
`paclock`
|
|
|
|
- Write the lock file path to `stdout` (without locking the database):
|
|
|
|
`paclock --print`
|
|
|
|
- Unlock the database:
|
|
|
|
`paclock --unlock`
|
|
|
|
- Display help:
|
|
|
|
`paclock --help`
|
|
|
|
- Display version:
|
|
|
|
`paclock --version`
|