Skip to content

Commit 92b54cb

Browse files
committed
xbps/index: Add example of using xbps-query to search repositories.
1 parent 0ab24d6 commit 92b54cb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/xbps/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ kernels](../config/kernel.md#removing-old-kernels)" for further information.
7474

7575
## Finding Files and Packages
7676

77+
To search available repositories for packages, use
78+
[xbps-query(1)](https://man.voidlinux.org/xbps-query.1):
79+
80+
```
81+
$ xbps-query -Rs <search_pattern>
82+
```
83+
84+
The `-R` flag specifies that repositories should be searched. Without it, `-s`
85+
searches for locally-installed packages.
86+
7787
If you can't find a file or program you expected to find after installing a
7888
package, you can use [xbps-query(1)](https://man.voidlinux.org/xbps-query.1) to
7989
list the files provided by that package:

0 commit comments

Comments
 (0)