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 -Qdt
Is 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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
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