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

How to install 7zip in ubuntu

Last Updated : 27 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
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

 


Similar Reads

How to Install, Configure and Use GIT on Ubuntu?
Pre-requisites: Ubuntu, Terminal Git is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed non-linear workflows. Every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server. GitHub is
6 min read
How to install Mailspring on Ubuntu
MailSpring application is an Email Client that provides various high-rich features like email templates, mail merge, custom signatures, and advanced search options. MailSpring application supports various email providers and email services like Gmail, Yahoo, and Microsoft Exchange. In this article, we will be installing the MailSpring application o
4 min read
How To Install Bitcoin Core wallet on Ubuntu
The Bitcoin Core application is an important application to improve the ease of transactions using Bitcoin. In this article, we went through the Installation steps of the Application by using 2 different methods. Along with the installation, we went through the uninstallation steps, which are as important as the installation. What is Bitcoin Core B
4 min read
How to Install Ubuntu on Windows using VMware?
VMWare, a short form of "VirtualMachine Ware". A cloud computing company that develops virtualization software, management, and networking interfaces or tools. It provides hypervisor tools or products that help in running virtual machines, clusters, and containers. By using this software we can virtualize the computer with required computing resour
2 min read
How to install the NFS server on Ubuntu?
NFS, which stands for Network File System, was created in 1984 by Sun Microsystems. A file system called Network File System (NFS) enables local access to distant files from various places across a network.NFS has a typical client/server architecture for this access, facilitating sharing between Linux workstations of any distribution. We will demon
4 min read
How to Install PyQuery package on Ubuntu?
Pyquery is a Python library that has quite a similar API to jQuery. It uses lxml module for fast XML and HTML manipulation experience. The API is as large as possible comparable to jQuery. Pyquery is processed on the server-side, unlike jquery which is processed in the browser. We can crawl the web information through this library very easily. Requ
2 min read
How to install Elinks on ubuntu
Elinks is a Unix-like operating system's free text-based web browser. Petr Baudi forked the Links Web browser in late 2001 as an experimental branch, hence the E in the name. The E has evolved to stand for Enhanced or Extended since then. Uses of ELinks: Elinks is a text-mode WWW browser that has color support, table rendering, background downloadi
2 min read
How to Install TradingView on Ubuntu?
The well-known platform TradingView makes it possible for traders, investors, and instructors to work together. This portal disseminates information on financial markets including stocks, futures, FX, and cryptocurrency. There is no need to download a client because TradingView typically runs in a browser. More than 30 million traders and investors
3 min read
How to install Django with NGINX, Gunicorn, and PostgreSQL on Ubuntu?
This article describes how to install and configure Django with PostgreSQL, Gunicorn, and Nginx on your Ubuntu machine. First, let's look at an overview of all the tools we use. Django is a robust, free, open-source, Python-based web framework that follows the MVT (Model-Template-View) architectural pattern. Though it includes an integrated develop
7 min read
How to Install ImageMagick and Imagick PHP extension in Ubuntu?
The Imagick function is used to create and modify images using the ImageMagick API. The ImageMagick is the software suite to create edit and modify the compose bitmap images. This functions read, write and converts images in many formats including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Requirements: PHP 5.1.3
2 min read