On Fri, 2020-02-21 at 14:11 -0500, Jude DaShiell wrote:
> Can pacman be used to find which packages are missing which optional
> dependencies after an install?

In the Internet I found

"For example with xmms2:
pacman -Qi xmms2 | sed -n '/^Optional/,$p' | sed '/^Required/q' | head -n -1 | 
cut -c19- | cut -d: -f1
"
- 
https://unix.stackexchange.com/questions/53080/list-optional-dependencies-with-pacman-on-arch-linux

so I reedited it to

for i in $(pacman -Q | cut -d\  -f1); do echo "##### "$i; pacman -Qi $(pacman 
-Q $i| cut -d\  -f1) | sed -n '/Deps/,$p' | sed '/^Required/q' | grep -v 
Required\ By | grep -v None | grep -v installed] ; done

To install all packages

"sudo pacman -S --asdeps $(pactree -l wine)" -
https://confluence.jaytaala.com/display/TKB/Install+a+package+with+all+optional+dependencies+in+Arch+based+distros

might do the job.

Reply via email to