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

pacman --files — Query the local files database. See also: `pacman`, `pkgfile`. More information: <https://manned.org

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

Problem

How to use the pacman --files command: Query the local files database. See also: pacman, pkgfile. More information: <https://manned.org/pacman.8>.

Solution

pacman --files — Query the local files database. See also: pacman, pkgfile. More information: <https://manned.org/pacman.8>.

Update the package database:
sudo pacman -Fy


Find the package that owns a specific [F]ile:
pacman -F {{filename}}


Find the package that owns a specific [F]ile, using a rege[x]:
pacman -Fx '{{regex}}'


List only the package names:
pacman -Fq {{filename}}


[l]ist the [F]iles owned by a specific package:
pacman -Fl {{package}}


Display [h]elp:
pacman -Fh

Code Snippets

Update the package database

sudo pacman -Fy

Find the package that owns a specific [F]ile

pacman -F {{filename}}

Find the package that owns a specific [F]ile, using a `rege[x]`

pacman -Fx '{{regex}}'

List only the package names

pacman -Fq {{filename}}

[l]ist the [F]iles owned by a specific package

pacman -Fl {{package}}

Context

tldr-pages: linux/pacman --files

Revisions (0)

No revisions yet.