From b37e93790e746d963c2c71f4c151366995a0e4ea Mon Sep 17 00:00:00 2001 From: camoz Date: Mon, 27 Dec 2021 05:24:17 +0100 Subject: [PATCH] src/xbps/index.md: Mention `xpkg` to list installed packages Reasons for mentioning this: - using `xpkg` is much simpler: one command without arguments vs. 3 commands piped together - xpkg is much faster: 0.13 s versus 3.28 s (on a C2D laptop with SSD from 2011) --- src/xbps/index.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xbps/index.md b/src/xbps/index.md index 51046e274..b3ea12c07 100644 --- a/src/xbps/index.md +++ b/src/xbps/index.md @@ -120,7 +120,14 @@ This requires `xbps-query` to download parts of every package to find the file. `xlocate`, however, queries a locally cached index of all files, so no network access is required. -To get a list of all installed packages, without their version: +To get a list of all installed packages without their version, use `xpkg` from +the `xtools` package: + +``` +$ xpkg +``` + +Alternatively, use: ``` $ xbps-query -l | awk '{ print $2 }' | xargs -n1 xbps-uhelper getpkgname