Categories: TutorialsUbuntu

How to Install 7-zip on Ubuntu 20.04

Introduction

When you move a large file or a large folder from one place to another, it is best to use compression tools to make this easier. One of the most popular software is 7-zip, this is software with a high compression ratio and does not win awards. It works on most operating systems and you can use it to extract files like 7z, zip, tar,…

And we will show you how to install 7-zip on Ubuntu 20.04 as you go through it below. Hope you understand.

Update the packages

Run the apt command:

$ sudo apt update

Output:

Sponsored

Then install p7zip-full package:

$ sudo apt install p7zip-full

Output:

Then you verify installed by:

$ 7z

Output:

Using 7-zip

We will try compressing some files by using 7-zip. Run ls -la:

$ ls -la

Output:

1. Using a option to archive or compress:

Sponsored
$ 7z a [compressed file] file

For example, I will compress 2 files: .profile and .bashrc into a file named demo.zip:

$ 7z a demo.zip .profile .bashrc

Output:

2. Using l option to show the detail of compressed file:

$ 7z l [compressed file]

For example:

$ 7z l demo.zip

Output:

3. Using e option to extract file:

$ 7z e [compressed file]

For example:

$ 7z e demo.zip

Output:

Conclusion

Hope you understood the tutorial on how to install 7-zip on Ubuntu 20.04.

Thanks for reading!

Ubuntu Server Admin

Recent Posts

From sales development to renewals: Mariam Tawakol’s career progression at Canonical

Career progression doesn’t follow a single path – and at Canonical, we embrace that. Our…

10 hours ago

In pursuit of quality: UX for documentation authors

Canonical’s Platform Engineering team has been hard at work crafting documentation in Rockcraft and Charmcraft…

10 hours ago

Ubuntu 24.10 (Oracular Oriole) reached End of Life on 10th July 2025

This is a follow-up to the End of Life warning sent earlier to confirm that…

1 day ago

Canonical announces Charmed Feast: A production-grade feature store for your open source MLOps stack

July 10, 2025: Today, Canonical announced the release of Charmed Feast, an enterprise solution for…

1 day ago

Ubuntu Adding NVIDIA 575 Driver Support for 24.04 & 22.04 LTS

For NVIDIA users, the latest 575 series driver will be available soon in Ubuntu repository.…

2 days ago

Amarok Released 3.3 with Qt6/KF6 Port & GStreamer Backend

Amarok, the free open-source KDE music player, released new 3.3 version on Tuesday, named “Far…

2 days ago