From 017916d8bb736d9562507edc08e3d59a0956fc2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20=C3=85kerstr=C3=B6m?= <23389010+gustavakerstrom@users.noreply.github.com> Date: Sat, 15 Mar 2025 23:00:58 +0100 Subject: [PATCH] expac: add page (#15925) --- pages/linux/expac.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/linux/expac.md diff --git a/pages/linux/expac.md b/pages/linux/expac.md new file mode 100644 index 0000000000..73ac47e71d --- /dev/null +++ b/pages/linux/expac.md @@ -0,0 +1,25 @@ +# expac + +> A data extraction tool for alpm databases, offering printf-like flexibility for pacman-based utilities. +> See also: `pacman`. +> More information: . + +- List the dependencies of a package: + +`expac -S '%D' {{package}}` + +- List the optional dependencies of a package: + +`expac -S "%o" {{package}}` + +- List the download size of packages in MiB: + +`expac -S -H M '%k\t%n' {{package1 package2 ...}}` + +- List packages marked for upgrade with their download size: + +`expac -S -H M '%k\t%n' $(pacman -Qqu) | sort -sh` + +- List explicitly-installed packages with their optional dependencies: + +`expac -d '\n\n' -l '\n\t' -Q '%n\n\t%O' $(pacman -Qeq)`