Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] reading debian package in windows (deb)

[solved] reading debian package in windows (deb)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zarkon
    wrote on 4 Jul 2014, 08:28 last edited by
    #1

    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

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ambershark
      wrote on 4 Jul 2014, 09:24 last edited by
      #2

      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.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zarkon
        wrote on 4 Jul 2014, 09:38 last edited by
        #3

        It seems that zlib is the way to go. Thanks!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ambershark
          wrote on 4 Jul 2014, 23:19 last edited by
          #4

          No problem. :) Good luck.

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          1 Reply Last reply
          0

          1/4

          4 Jul 2014, 08:28

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved