How To Install p7zip-full on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 469 words
Introduction
In this tutorial we learn how to install p7zip-full
on Ubuntu.
What is p7zip-full
p7zip-full is:
p7zip is the Unix command-line port of 7-Zip, a file archiver that handles the 7z format which features very high compression ratios.
p7zip-full provides utilities to pack and unpack 7z archives within a shell or using a GUI (such as Ark, File Roller or Nautilus).
Installing p7zip-full allows File Roller to use the very efficient 7z compression format for packing and unpacking files and directories. Additionally, it provides the 7z and 7za commands.
List of supported formats:
- Packing / unpacking: 7z, ZIP, GZIP, BZIP2, XZ and TAR
- Unpacking only: APM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, LZMA2, MBR, MSI, MSLZ, NSIS, NTFS, RAR (only if non-free p7zip-rar package is installed), RPM, SquashFS, UDF, VHD, WIM, XAR and Z.
The dependent package, p7zip, provides 7zr, a light version of 7za, and p7zip, a gzip-like wrapper around 7zr.
There are three methods to install p7zip-full
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install p7zip-full Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install p7zip-full
using apt-get
by running the following command:
sudo apt-get -y install p7zip-full
Install p7zip-full Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install p7zip-full
using apt
by running the following command:
sudo apt -y install p7zip-full
Install p7zip-full Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install p7zip-full
using aptitude
by running the following command:
sudo aptitude -y install p7zip-full
How To Uninstall p7zip-full on Ubuntu
To uninstall only the p7zip-full
package we can use the following command:
sudo apt-get remove p7zip-full
Uninstall p7zip-full And Its Dependencies
To uninstall p7zip-full
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove p7zip-full
Remove p7zip-full Configurations and Data
To remove p7zip-full
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge p7zip-full
Remove p7zip-full configuration, data, and all of its dependencies
We can use the following command to remove p7zip-full
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge p7zip-full
Dependencies
p7zip-full have the following dependencies:
References
Summary
In this tutorial we learn how to install p7zip-full
package on Ubuntu using different package management tools: apt, apt-get and aptitude.