How to Install 7zip in Linux

7zip is an open-source file archiver and compressor tool with a high compression ratio, making it a popular choice for many Linux users. It supports various file formats, such as 7z, XZ, BZIP2, GZIP, TAR, ZIP, and WIM.

Features of 7Zip,

  1. High Compression Ratio
  2. Multiple Formats Support
  3. Open-Source and Free
  4. Strong Encryption Options
  5. Integration with Windows Explorer
  6. Split and Merge Archives
  7. Command-Line Interface
  8. Multilingual Support

In this article, we will go through the steps required to install 7zip in Linux distributions, such as Ubuntu, Fedora, CentOS, and openSUSE.

Install 7zip in Linux

7Zip is present in most of package manager except CentoS and Redhat where you have to enable EPEL repository. But, that is easy.

To install 7zip in Ubuntu and other Debian-based distributions

Open the terminal by press Ctrl + Alt + T. Update the Package Index before installing any new package.

sudo apt update

Install the p7zip Package.

sudo apt install p7zip p7zip-full p7zip-rar

In Fedora, you can install 7zip using the DNF package manager

Open the Terminal Press Ctrl + Alt + T to open the Terminal.  Update the DNF Cache.

sudo dnf update

Install the p7zip Package

sudo dnf install p7zip p7zip-plugins

For CentOS and RHEL, you can install 7zip using the EPEL repository.

Open the Terminal Press Ctrl + Alt + T to open the Terminal. Install the EPEL Repository

sudo yum install epel-release

Update the YUM Cache

sudo yum update

Install the p7zip Package

sudo yum install p7zip p7zip-plugins

In openSUSE, you can install 7zip using the Zypper package manager.

Open the Terminal Press Ctrl + Alt + T to open the Terminal. Update the Zypper Cache.

sudo zypper update

Install the p7zip Package

sudo zypper install p7zip

In Arch Linux and Arch-based distributions like Manjaro, you can install 7zip using the Pacman package manager.

Open the Terminal Press Ctrl + Alt + T to open the Terminal. Update the Pacman Database Run the following command to update the Pacman database:

sudo pacman -Syu

Install the p7zip Package.

sudo pacman -S p7zip

Summary

With these instructions, you can now install 7zip on Ubuntu, Fedora, CentOS, openSUSE, Arch Linux, and their derivatives. Once installed, use the command 7z along with the appropriate options to compress and decompress files.

For more information on using the 7zip command-line tool, consult the 7zip manual by running man 7z. You can also visit official 7Zip site

Video tutorial

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top