From 3bf8cb66454e74c63c38609892bbe97da357a4f6 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 14 Jul 2026 02:08:38 +0200 Subject: [PATCH] Linux/pacman and yay: added searching packages --- wiki/linux/package_manager/pacman_and_aur.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wiki/linux/package_manager/pacman_and_aur.md b/wiki/linux/package_manager/pacman_and_aur.md index 2996dd1..5e2bdc5 100644 --- a/wiki/linux/package_manager/pacman_and_aur.md +++ b/wiki/linux/package_manager/pacman_and_aur.md @@ -186,6 +186,24 @@ To enable it search and uncomment the following lines in the file `/etc/pacman.c Include = /etc/pacman.d/mirrorlist ``` +### Searching for Packages by File + +Sometimes it is useful to determine which package provides a specific file. +Before searching the file database it has to be synchronized. + +```sh +sudo pacman -Fy +``` + +Afterward, search for one or more file names by replacing `` with the desired file. + +```sh +pacman -F +``` + +For example, this can be used to determine which package provides a missing binary, library or +configuration file. + ### Hooks Hooks are commands that are run before or after installation of one or more packages.