1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 14:35:24 +02:00
tldr/pages/linux/expac.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

849 B

expac

A data extraction tool for alpm databases, offering printf-like flexibility for pacman-based utilities. See also: pacman. More information: https://github.com/falconindy/expac.

  • List the dependencies of a package:

expac {{[-S|--sync]}} '%D' {{package}}

  • List the optional dependencies of a package:

expac {{[-S|--sync]}} "%o" {{package}}

  • List the download size of packages in MiB:

expac {{[-S|--sync]}} {{[-H|--humansize]}} M '%k\t%n' {{package1 package2 ...}}

  • List packages marked for upgrade with their download size:

expac {{[-S|--sync]}} {{[-H|--humansize]}} M '%k\t%n' $(pacman -Qqu) | sort {{[-sh|--sort --human-numeric-sort]}}

  • List explicitly-installed packages with their optional dependencies:

expac {{[-d|--delim]}} '\n\n' {{[-l|listdelim]}} '\n\t' {{[-Q|--query]}} '%n\n\t%O' $(pacman -Qeq)