mirror of
https://github.com/tiyn/wiki.git
synced 2026-07-26 12:21:35 +02:00
Linux/pacman and yay: added searching packages
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user