7-Zip is a free open source file archiver software for Windows, MacOS, and Linux. It is under the GNU LGPL license and has a portion under the BSD3 clause license. Some of its features are 7z format, AES-256 encryption, self-extracting, and built-in file manager that support LZMA and LZMA2 compression.
Starting with 7-Zip 21.01 Alpha, it comes with native Linux command line support. You can install this 7-Zip for Linux console version on your Ubuntu Linux system using the following methods:
Install official 7-Zip for Linux on Ubuntu
Open the terminal command line software (ctrl + alt + t) and run the following command.
Download the latest current 7-Zip 21.02 alpha with tarball.You can check the latest version and file name here 7-Zip download page.. Then change this “7z2102-linux-x64.tar.xz” to the current version.
Also read: Create a triangle illustration from a photo using FOS Striangulator
If you don’t have wget, use curl to download the file. Example:
curl -O https://www.7-zip.org/a/7z2102-linux-x64.tar.xz
After downloading, execute the following command. Extract the archive.
tar xf 7z2102-linux-x64.tar.xz
You can now run 7-Zip using the following command:
To access 7-Zip from anywhere, just run this command. Add the binaries to the / usr / local / bin directory.
sudo mv 7zz /usr/local/bin