How do I use dpkg commands in C? What headers/commands are available?
I tried a web search, but it mostly displays manpages for dpkg, and I don’t see the said manpage mention anything C-related.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately for you, dpkg provides a much better api for Perl or Ruby than for C. The package you want is libdpkg-dev, which provides the static library libdpkg.a. However, be warned that this library is volatile and intended for internal use only by the dpkg binary. Use at your own risk 😉