Zip — Unzip: How to install 7-Zip on Linux

TechChopped
3 min readJan 14, 2022

--

This article will go over how to install 7-Zip on any Linux distribution.

7-Zip is a popular file archiver that offers high compression ratios by using the LZMA, LZMA2, and the new 7z compression formats. It is popular among Windows users, making its use quite widespread.

However, until last year, there had been no official release of 7-Zip for Linux. But in March 9, 2021, 7-Zip 21.01 alpha was made available for the Linux operating system.

And now, at the time of writing.. not just one, or two improved versions have been released, but as many as six versions!

Here is how you install the latest console version of 7-Zip for Linux.

How to Install 7-Zip in Linux

You can now install 7-Zip on your Linux machine without using any third-party forks. Simply download the 7-Zip binary and extract it on your system.

From your terminal, type:

For 64-bit Linux x86–64 systems:

$ wget https://www.7-zip.org/a/7z2107-linux-x64.tar.xz

For 32-bit Linux x86 systems:

$ wget https://www.7-zip.org/a/7z2107-linux-x86.tar.xz

For 32-bit Linux arm systems:

$ wget https://www.7-zip.org/a/7z2107-linux-arm64.tar.xz

If you don’t have wget on your Linux installation, use the curl instead:

Example (64-bit):

$ curl -O https://www.7-zip.org/a/7z2107-linux-x64.tar.xz

Once the download is complete, you can begin extracting the archive. You can use the following command:

$ tar xf 7z2107-linux-x64.tar.xz

Don’t forget to change ‘7z2107-linux-x64.tar.xz’ to your chosen version.

The following command will now launch 7-zip on your Linux machine:

$ ./7zz

When using 7zip from a different working directory, you must enter the entire path to this binary. To work around this, copy the binary to your /usr/local/bin directory.

You can achieve this with the following command:

$ mv 7zz /usr/local/bin

Aften that is done, you can access 7-Zip from anywhere on the filesystem.

7-Zip also provides us with p7zip, which is a very reliable utility, and it is available on many different Linux distros.

The p7zip utility provides many 7zip-specific file compression and archival features. Despite the fact that it is no longer actively maintained, p7zip still performs admirably on Linux-based operating systems.

So, 7-Zip vs. p7zip: Which one to use?

Use any of these tools, whatever feels right for you. Any of these tools can be used to compress and decompress files into the 7z format. But we recommend that you try the new 7-Zip release now that it is official. It will also be easier to track bugs and get assistance from developers if you run into any problems.

You can find all downloads for 7zip here.

p7zip is available for download at the following links:
(x86 binaries)
https://sourceforge.net/projects/p7zip/files/
(source code)
https://sourceforge.net/projects/p7zip/

--

--

TechChopped

We will provide you with the information and guides you need