expac
A data extraction tool for alpm databases, offering printf-like flexibility for pacman-based utilities. tldr-pages
On Linux
Linux
List the dependencies of a package
expac --sync '%D' packageIdentifyList the optional dependencies of a package
expac --sync "%o" packageIdentifyList the download size of packages in MiB
expac --sync --humansize M '%k\t%n' package1 package2 ...IdentifyList packages marked for upgrade with their download size
expac --sync --humansize M '%k\t%n' $(pacman -Qqu) | sort --sort --human-numeric-sortIdentifyList explicitly-installed packages with their optional dependencies
expac --delim '\n\n' --listdelim '\n\t' --query '%n\n\t%O' $(pacman -Qeq)Identify