mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
35 lines
940 B
Plaintext
35 lines
940 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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#name>.
|
|
|
|
- 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 %n' {{package1 package2 ...}}`
|
|
|
|
- List packages marked for upgrade with their download size:
|
|
|
|
`expac {{[-S|--sync]}} {{[-H|--humansize]}} M '%k %n' $(pacman -Qqu) | sort {{[-sh|--sort --human-numeric-sort]}}`
|
|
|
|
- List explicitly-installed packages with their optional dependencies:
|
|
|
|
`expac {{[-d|--delim]}} '
|
|
|
|
' {{[-l|--listdelim]}} '
|
|
' {{[-Q|--query]}} '%n
|
|
%O' $(pacman -Qeq)`
|