You are not logged in.
Pages: 1
I aim to create a diagram that represent the status of my arch linux. In particular i want to make a graph that have all the packages that i decide to install linked to the dependencies. I tried to use a combination of pactree and dot but without any result. i will post the little script i made so if anyone have some advice.
#!/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.
Offline
You mean like pacgraph?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pacgraph is certainly an option, but not everyone likes its output...
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...
Last edited by dolik.rce (2013-04-23 18:26:42)
Offline
Another option is garchdeps:
Offline
Pages: 1