The Wayback Machine - https://web.archive.org/web/20240120051248/https://www.geeksforgeeks.org/how-to-install-7zip-in-ubuntu/
Open In App
Related Articles

How to install 7zip in ubuntu

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

7-Zip is a free and open-source file archiver, which compresses files and saves them in compressed containers known as “archives.” Igor Pavlov designed created and released it in 1999. 7-Zip has its own archive format, 7z, but it can also read and write a variety of other formats. 7-zip is included in the p7zip package. There are two sorts of p7zip packages. P7zip and p7zip-full are the programs in question. Install p7zip-full if you want to create an auto-extractable archive with other archive parameters. This is where the p7zip-full package command is run. In this article, we will be installing a 7zip application in Ubuntu operating system.

Installation of 7zip in Ubuntu

Follow the below steps to install 7zip:

Step 1: First we will update the repositories using the below command.

sudo apt-get update

 

Step 2: Now, we will install the p7zip application by executing the below command:

sudo apt-get install p7zip-full

 

Step 3: Using the below command, we will verify whether the package is installed correctly or not.

7z

 

Usage of 7zip Application

7-zip will compress any file or folder that you select. To see a list of all files and folders in the current directory, use ls -la. The data.txt file is chosen for compression here. The file is 540 bytes in size.

ls -la

 

Create a compressed file named data.7z using the command. Option an is for compressing or archiving. The archive file is 152 bytes in size after compression.

7z a data.7z data.txt

 

Run the 7z command with the “l” option to see the detailed information list for any archive file.

7z l data.7z

 

To decompress or extract files and folders from an archive file, use the 7z command with the “e” option.

7z e data.7z

 

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 27 Jun, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads