2025-03-15 23:00:58 +01:00
|
|
|
# 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:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`expac {{[-S|--sync]}} '%D' {{package}}`
|
2025-03-15 23:00:58 +01:00
|
|
|
|
|
|
|
- List the optional dependencies of a package:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`expac {{[-S|--sync]}} "%o" {{package}}`
|
2025-03-15 23:00:58 +01:00
|
|
|
|
|
|
|
- List the download size of packages in MiB:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`expac {{[-S|--sync]}} {{[-H|--humansize]}} M '%k\t%n' {{package1 package2 ...}}`
|
2025-03-15 23:00:58 +01:00
|
|
|
|
|
|
|
- List packages marked for upgrade with their download size:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`expac {{[-S|--sync]}} {{[-H|--humansize]}} M '%k\t%n' $(pacman -Qqu) | sort {{[-sh|--sort --human-numeric-sort]}}`
|
2025-03-15 23:00:58 +01:00
|
|
|
|
|
|
|
- List explicitly-installed packages with their optional dependencies:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`expac {{[-d|--delim]}} '\n\n' {{[-l|listdelim]}} '\n\t' {{[-Q|--query]}} '%n\n\t%O' $(pacman -Qeq)`
|