{"id":12293,"date":"2021-11-24T04:53:52","date_gmt":"2021-11-24T04:53:52","guid":{"rendered":"https:\/\/linuxways.net\/?p=12293"},"modified":"2021-11-24T04:53:52","modified_gmt":"2021-11-24T04:53:52","slug":"how-to-install-7-zip-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-7-zip-on-ubuntu-20-04\/","title":{"rendered":"How to Install 7-zip on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>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,&#8230;<\/p>\n<p>And we will show you how to install 7-zip on Ubuntu 20.04 as you go through it below. Hope you understand.<\/p>\n<h2>Update the packages<\/h2>\n<p>Run the apt command:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1043\" height=\"125\" class=\"wp-image-12294\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-429.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-429.png 1043w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-429-300x36.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-429-1024x123.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-429-768x92.png 768w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/p>\n<p>Then install p7zip-full package:<\/p>\n<pre>$ sudo apt install p7zip-full<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1043\" height=\"593\" class=\"wp-image-12295\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-430.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-430.png 1043w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-430-300x171.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-430-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-430-768x437.png 768w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/p>\n<p>Then you verify installed by:<\/p>\n<pre>$ 7z<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"106\" class=\"wp-image-12296\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-431.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-431.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-431-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-431-1024x104.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-431-768x78.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<h2>Using 7-zip<\/h2>\n<p>We will try compressing some files by using 7-zip. Run ls -la:<\/p>\n<pre>$ ls -la<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"532\" class=\"wp-image-12297\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-432.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-432.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-432-300x153.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-432-1024x523.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-432-768x392.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p>1. Using <strong>a<\/strong> option to archive or compress:<\/p>\n<pre>$ 7z a [compressed file] file<\/pre>\n<p>For example, I will compress 2 files: .profile and .bashrc into a file named demo.zip:<\/p>\n<pre>$ 7z a demo.zip .profile .bashrc<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"369\" class=\"wp-image-12298\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-433.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-433.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-433-300x106.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-433-1024x363.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-433-768x272.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p>2. Using<strong> l <\/strong>option to show the detail of compressed file:<\/p>\n<pre>$ 7z l [compressed file]<\/pre>\n<p>For example:<\/p>\n<pre>$ 7z l demo.zip<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"471\" class=\"wp-image-12299\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-434.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-434.png 1041w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-434-300x136.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-434-1024x463.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-434-768x347.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/p>\n<p>3. Using <strong>e<\/strong> option to extract file:<\/p>\n<pre>$ 7z e [compressed file]<\/pre>\n<p>For example:<\/p>\n<pre>$ 7z e demo.zip<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1043\" height=\"549\" class=\"wp-image-12300\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-435.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-435.png 1043w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-435-300x158.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-435-1024x539.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-435-768x404.png 768w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>Hope you understood the tutorial on how to install 7-zip on Ubuntu 20.04.<\/p>\n<p>Thanks for reading!<\/p>","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>","protected":false},"author":1,"featured_media":12385,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[694,100],"class_list":["post-12293","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-7-zip","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12293"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12293\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12385"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}