Uncompress bz2 file from command line on Windows

1

Is there any tool in the Windows command line that allows me to do this? Otherwise, is there any light and portable application that will allow me to?

Related question, can I rename .bz2 extension to .zip? Seems to work for WinRar.

Sergio Basurco

Posted 2015-01-14T15:37:13.613

Reputation: 133

Answers

3

Windows doesn't have native support for .bz2. 7-zip however is free and pretty light as well as featuring command line running. The command you need for it is:

7z x archive.bz2

Andy

Posted 2015-01-14T15:37:13.613

Reputation: 666

Sweet. Is there a portable 7z build that you know of? I want to use it just once for uncompressing a file and then delete it. – Sergio Basurco – 2015-01-14T16:04:43.010

Goto the download page on the left and in the second box (stable build, not beta) there are a number of links including a zip version - it's the 6th link down. – Andy – 2015-01-14T16:07:42.930

As it is not apparent: 7-zip is both a command line and GUI utility. Easy 7-zip is very similar, with slightly improved GUI features.

– tanius – 2018-03-12T00:49:56.133

1

The official bzip2 command line utility is available for Windows.

Installation:

  1. Download and unpack the file bzip2-1.x.x-win-x64.zip for a 64 bit Windows, or bzip2-1.x.x-win-x86.zip for a 32 bit Windows.

  2. Install msvcr120.dll according to the instructions:

    All binaries depend on the Visual Studio 2013 C Runtime Library (msvcr120.dll). This can be installed using the Visual C++ Redistributable Packages for Visual Studio 2013 installer.

tanius

Posted 2015-01-14T15:37:13.613

Reputation: 515