Questions tagged [bzip2]

bzip2 is a Unix command used for compression and decompression of files. The main advantage of bzip2 is that it has a high compression ratio with reasonable speed.

bzip2 one of the most widely used free compression programs for the terminal.

It typically compresses files to within 10% to 15% of the best available techniques, whilst being around twice as fast at compression and six times faster at decompression.

The current version is 1.0.6, released 20 Sept 2010.

327 questions
0
votes
1 answer

how to enable bzip2 compression on centos

I need to enable bzip2 compression on a centOS server. Let me walk you through what I did so far: When running composer install I get the following errors: Problem 1 - Installation request for jakoch/phantomjs-installer 2.1.1-p08 -> satisfiable…
Donomron
  • 195
  • 3
  • 17
0
votes
1 answer

How to download and open only the first block of a bzip2 from S3?

I have a large bzip2 compressed file on S3 and I'm only interested in its first line. How can I read the first line(s) without downloading and decompressing the entire file?
Raffael
  • 19,547
  • 15
  • 82
  • 160
0
votes
1 answer

Trying to get some output from subprocess.Popen works for all commands but bzip2

I am trying to get the output from subprocess.Popen assign it to a variable and then work with it in the rest of my program however it is executing code without ever assigning it to my variable my current line of code is result =…
Mike
  • 69
  • 1
  • 3
  • 9
0
votes
1 answer

Passing python variable into the shell

I have a folder, say myFolder, in which there are multiple csv files and I want to bzip2 them. One option is of course to use shell: bzip2 myFolder/file1.csv How can I do it (same command) in jupyter notebook? I tried: for x in…
Ala Tarighati
  • 3,507
  • 5
  • 17
  • 34
0
votes
0 answers

How to verify application/x-bzip2 type response in Python

I am using Python to make api Call and getting unreadable response data from one Post API call. e.g.Response text looks like below �r6�;���&�gr&)i��|!J6.m�����[;ŀ�'���1,�'>B()@�ܪ �D�����n�r/8*�<�QS���5�v�\3t� Post Header :…
Devang
  • 365
  • 2
  • 6
  • 26
0
votes
2 answers

How to apply this command to subfolders?

bzip2.exe -z compressfolder/*.* How should modify it so that it will do its job to sub-folders of compressfolder?
ilhan
  • 8,700
  • 35
  • 117
  • 201
0
votes
0 answers

libbzip2 problem with files larger than block size

I have code that reads from a bzip2-compressed file using the zlib compatibility functions. This works in principle but it turns out that reading stops after exactly 900,000 bytes, which is the block size used during compression. How do I read past…
user52366
  • 1,035
  • 1
  • 10
  • 21
0
votes
1 answer

Compression of XML containing base64 data

I have an XML file which contains long base64 string data. The size of the XML is roughly 6KB, I want to reduce the size of the XML to somewhere about 1.5 to 2KB. The text compression I am looking for should be lossless. I have tried to use a lot of…
harshkumar
  • 23
  • 5
0
votes
1 answer

How can I fix tar-bzip2-ruined source code encoding?

I nearly completed a DES implementation for a school project when... I ruined my source code with tar & bzip2. The command was: tar cjvf des.cpp des.h main.cpp > des_implementation.tar.bz2 I tried to create a compressed archive to send to a friend.…
abdelmak
  • 3
  • 3
0
votes
1 answer

On-disk zipped file integrity when zipping interrupted

I have a program that takes a file, compresses it using /usr/bin/zip or /bin/gzip or /bin/bzip2, and removes the original if and only if the compress operation completes successfully. However, this program can be killed (via kill -9), or, in…
Harry
  • 3,684
  • 6
  • 39
  • 48
0
votes
1 answer

compression method for .dmg

I want to compress a .app folder to a .dmg I used bzip2 (-format UDBZ) to do that but the filesize is still too large and I know it can be done better. Is there a better compression algorythm available? Can I use 7zip (LZMA)?
SandyBr
  • 11,459
  • 10
  • 29
  • 27
0
votes
0 answers

BZIP2 linking error with Cygwin64

I encounter the following linking error when attempting to use in Cygwin64. My PATH accounts for the location of libbz2.a and libbz2.dll. $ gcc -lbz2 bzlibExample.c -o bzlibExample /tmp/ccz9P7fm.o:bzlibExample.c:(.text+0x18b): undefined reference…
0
votes
1 answer

Cannot find BZIP2 library on Cygwin 64 on Win7(64)

Cannot find BZIP2 library on Cygwin 64 on Win7(64). I am using CYGWIN64 on Win 64. I can use bzip2 from the terminal but unable to locate the header file to use bzip2 programatically from an ANSI C application. I went to the BZIP site and…
0
votes
1 answer

Byte string to Byte array in JavaScript (Node)

I am trying to complete pythonchallenge using JS and Node and I am currently stuck at challenge 8 where I need to decompress this string using bzip2: BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00…
Akash Singh
  • 21
  • 1
  • 8
0
votes
0 answers

Decompress large BZip2 file - C#

So I need to decompress a BZip2-file, use the files data, and then remove the decompressed file. The issue is that my method doesn't work when the BZip2-file is too large. Been using: using ICSharpCode.SharpZipLib.BZip2; This is what I've been…
Jesper
  • 2,044
  • 3
  • 21
  • 50