HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

paclock — Lock/unlock the libalpm database (used by `pacman`) to prevent or allow simultaneous package managem

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandpaclocklibalpmdatabasecliunlocklock
linux

Problem

How to use the paclock command: 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>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/paclock

Revisions (0)

No revisions yet.