8

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.

Hennes
  • 64,768
  • 7
  • 111
  • 168
Sergio Basurco
  • 205
  • 1
  • 3
  • 8

3 Answers3

11

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
  • 744
  • 5
  • 12
  • 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 Jan 14 '15 at 16:04
  • 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 Jan 14 '15 at 16:07
  • As it is not apparent: 7-zip is both a command line and GUI utility. [Easy 7-zip](http://www.e7z.org/) is very similar, with slightly improved GUI features. – tanius Mar 12 '18 at 00:49
2

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
  • 790
  • 1
  • 10
  • 20
0

Adding on tanius's answer:

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.

  1. Install msvcr120.dll for v 1.06 and vcruntime140.dll for newer versions according to the instructions

If you're like me and don't know anything about vcruntime140.dll, I found this video helpful in helping me find out where it is / how to get it.