[solved] reading debian package in windows (deb)
-
wrote on 4 Jul 2014, 08:28 last edited by
Hi,
I am making a windows tool that should read and analyse the contents of a debian package. Is there any standard way (api) to do this? Or should make use of external tools like 7zip?
Greetings
Jos
-
wrote on 4 Jul 2014, 09:24 last edited by
Well, debian packages are basically just GNU ar files. So you could get a 3rd party library that can work on ar files.
In linux (or cygwin under windows) you can do:
@
ar x package.deb
@and that will extract the debian package to it's components.
These would be:
@
debian-binary
control.tar.gz
data.tar.gz
@To work on those files you will need zlib to decompress the gz, and a tar extraction utility to extract the tar file.
You can find libraries to do all of these with Qt. I don't think it supports tar/ar but I believe qUncompress() can handle gzip data. Not 100% sure about that though, haven't actually tried it, but I know it uses zlib.
-
wrote on 4 Jul 2014, 09:38 last edited by
It seems that zlib is the way to go. Thanks!
-
wrote on 4 Jul 2014, 23:19 last edited by
No problem. :) Good luck.
1/4