If you want to use pactree & dot, it is of course possible, you need just few tweaks to your script:
#!/bin/bash
echo 'digraph G { START [color=red, style=filled]; node [style=filled, color=green]; ' > all.deps
for out in $(pacman -Qqs)
do
pactree -g $out
done | sed '/digraph G/d;/^node /d;/^}$/d;' | sort -u >> all.deps
echo '}' >> all.deps
time dot -Tsvg all.deps > alldeps.svg
That will join all the subgraphs into one and remove duplicate dependencies. Note that the final image, is quite incomprehensible, as there is way too many packages You might want to play with the settings a bit...
]]>#!/bin/bash
rm all.deps
for out in $(pacman -Qqs)
do
pactree -g $out >> all.deps
done
dot -Tsvg all.deps > alldeps.svg
the main problem is that inside the file there are distinct graph one per each package. I want to make one entire graph with the dependencies occurs only one and have many links.
I try to find on internet if someone did something like this but i didn't have any luck.