0

I've been give a task to write a short C/C++ program to
extract files from a .deb file on windows platform
I know there are tools like 7zip that do it but I need
to code it).
Could someone please give me a push in the right direction
(too much rust and too little experience :$.)

In wikipedia (http://en.wikipedia.org/wiki/Deb_%28file_format%29)
I can see the following:
a deb file is implemented as an ar archive.
Canonical contents of this archive are three files:

* debian-binary: deb format version number.
This is "2.0" for current versions of Debian.
* control.tar.gz: all package meta-information.
* data.tar or data.tar.gz or data.tar.bz2 or
data.tar.lzma or data.tar.xz: the actual installable files.

The debian-binary file must be the first entry in the archive,
otherwise it will not be recognized as a Debian package.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Aranarth
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.