mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 00:58:48 +00:00
Update cheatsheets
This commit is contained in:
34
tldr/linux/expac
Normal file
34
tldr/linux/expac
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
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>.
|
||||
|
||||
- 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 %n' {{package1 package2 ...}}`
|
||||
|
||||
- List packages marked for upgrade with their download size:
|
||||
|
||||
`expac -S -H M '%k %n' $(pacman -Qqu) | sort -sh`
|
||||
|
||||
- List explicitly-installed packages with their optional dependencies:
|
||||
|
||||
`expac -d '
|
||||
|
||||
' -l '
|
||||
' -Q '%n
|
||||
%O' $(pacman -Qeq)`
|
||||
Reference in New Issue
Block a user