1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-07-26 04:21:34 +02:00

Linux/pacman and yay: added searching packages

This commit is contained in:
2026-07-14 02:08:38 +02:00
parent 6990238a7d
commit 3bf8cb6645

View File

@@ -186,6 +186,24 @@ To enable it search and uncomment the following lines in the file `/etc/pacman.c
Include = /etc/pacman.d/mirrorlist 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 `<file>` with the desired file.
```sh
pacman -F <file>
```
For example, this can be used to determine which package provides a missing binary, library or
configuration file.
### Hooks ### Hooks
Hooks are commands that are run before or after installation of one or more packages. Hooks are commands that are run before or after installation of one or more packages.