ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Its much better to use the good archiver such as rar, 7zip on uncompressed files (and not after crappy zip for eg. ).
People often compress .iso files and similar that contain .cab archives.
So, compression ratio would be much better if those .cab files were first uncompressed and then rar-ed/7zip-ed.
I know it would be difficult, and dearchiver would need to re-compress to make .cab again (so it would have to include M$ algorithm and unpacking would take a lot of time) but its possible?
Sure, it's POSSIBLE. You'd have to extract the iso, scan the file structure for archives, decompress said archives while storing their original name and location, then compress the whole file structure. Then the dearchiver has to decompress the file structure, restore the original archives, and then make the iso - remembering to make it bootable if applicable.
It's a convoluted process, and will require temporary disk space equal to the size of the iso. You mentioned it could take a long time. If the iso contains a decompression bomb, the user of your program is exposed to it. And there's a good chance the dearchived iso will not be bit-for-bit identical to the original.
I really don't think the few percent file savings are likely to be worth it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.