You are not logged in.
Hello
I want to make an app that, for example, lists all packages no longer required as dependencies, and shows them in a grid. So
pacman -QdtIs it possible to call pacman from code? Lets say from C++.
Offline
Yes.
popen is a really low level way of doing this natively. Other solutions are offered by glib and valla
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Or just use libalpm...
Offline
There's also a Python binding for libalpm named pyalpm.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Yes.
popen is a really low level way of doing this natively. Other solutions are offered by glib and valla
Popen is exactly what I wanted, Thanks!
Offline