Comments (6)
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.
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.
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.
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.
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.
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)
- Crash when files in ZIP have no date HOT 3
- cpio support
- [Feature request] Smart assumption of the user intention HOT 1
- Help message is incomplete and wrong HOT 5
- Duplicating file suffix causes panic: "entered unreachable code" HOT 2
- Remove `Bzip1` as an alias to `Bzip2`
- When decompressing with `--format`, don't overwrite input
- 'smart unpack' sometimes chooses an illogical name for the directory HOT 2
- Overwrite behavior removes files differently than expected
- If the compressed file name contains a dot, ouch use it as a folder name until then. HOT 3
- Panic with large archive file HOT 6
- Progress size unit is inconsistent HOT 1
- Ignore __MACOSX by default HOT 3
- Be compatible with tee utility HOT 3
- Parallel decompression emits unaligned progress
- bgzf support
- About 0.4.2 release HOT 2
- Cargo version stuck on 0.4.1 even though 0.4.2 is released HOT 1
- `--format` flag order matters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ouch.