Code Monkey home page Code Monkey logo

Comments (6)

jetm avatar jetm commented on June 10, 2024 1

I was thinking more about the decompress command, not the compress because Debian has its own way to do so.

It would be just extending decompress functionality based on the file type. Something like this,

ouch decompress pkg.deb
Detecting Debian binary package
decompressing pkg.deb
decompressing control tarball
decompressing data tarball
...

And that's it. It would be easier doing like that because no need to take care of the compression.

from ouch.

marcospb19 avatar marcospb19 commented on June 10, 2024

Thanks for the issue, glad to see you like Ouch :)

I can't think of any problems with supporting .deb.

Yeah it would be the first of the kind (binary file with specific files in), but I believe it wouldn't clash with our current usage.

If you can do:

ouch compress a b c d pkg.deb
# and
ouch decompress pkg.deb

With no required extra args, then it's OK for it to be supported :)

If we need other specific args, we'd need to create a new subcommand, like ouch bundle deb ..., and in that case, I'd start questioning if that's really easier/more intuitive than just using the usual tools.

from ouch.

marcospb19 avatar marcospb19 commented on June 10, 2024

Makes sense! I never had to compress a .deb archive, but countless times I had to decompress it. It's certainly the most common use-case.

This would be the first format in Ouch that doesn't get compressed, similar to .rar if we end up adding it, @figsoda how do you feel about this one?

from ouch.

figsoda avatar figsoda commented on June 10, 2024

I don't know the details of the deb format, but if it's like zip, I think we can support compression with a (arbitrary?) compression method that can be later extended to be customizable.

I actually opened an issue a while ago for the ar format and also lumped in deb: #201

from ouch.

marcospb19 avatar marcospb19 commented on June 10, 2024

I think we can support compression with a (arbitrary?) compression method

We can choose a default compression method, the problem is providing more required fields that can't have a default and can't be omitted, I didn't even google it, but I'm assuming that's the case here, do you know @jetm?

from ouch.

jetm avatar jetm commented on June 10, 2024

I wouldn't bother with the compression method, just the decompression. Like you said it, the most common case for Debian package is decompress.

from ouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.