Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
7zip install on Linux -- Ubuntu and Fedora or CentOS / RHEL

Steps to install 7zip on Linux » Ubuntu and Fedora or CentOS / RHEL

Ubuntu

cat /etc/*release
sudo apt-get update -yqq
sudo apt-get install -yqq p7zip-full

Fedora or CentOS / RHEL

CentOS 7.x

Download and install manually

wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-16.02-10.el7.x86_64.rpm
wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-plugins-16.02-10.el7.x86_64.rpm

sudo rpm -U --quiet p7zip-16.02-10.el7.x86_64.rpm
sudo rpm -U --quiet p7zip-plugins-16.02-10.el7.x86_64.rpm

CentOS 6.7

From EPEL

Download and install using Package manager

cat /etc/*release
sudo yum install -y -q epel-release
sudo rpm -U --quiet http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
sudo yum repolist
sudo yum install -y -q p7zip p7zip-plugins

Download and install manually

In case of connectivity [or any other] issues, please follow these steps to download and install the following packages directly.

wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/Packages/p/p7zip-16.02-10.el6.x86_64.rpm
wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/Packages/p/p7zip-plugins-16.02-10.el6.x86_64.rpm

sudo rpm -U --quiet p7zip-16.02-10.el6.x86_64.rpm
sudo rpm -U --quiet p7zip-plugins-16.02-10.el6.x86_64.rpm
@rahulakrishna

This comment has been minimized.

Copy link

rahulakrishna commented Jan 13, 2018

Great work! Thanks!

@mingulov

This comment has been minimized.

Copy link

mingulov commented May 18, 2018

Thank you for the article.
CentOS 7.x - .el7 files, not .el6 (installation part)

@ruiruige

This comment has been minimized.

Copy link

ruiruige commented Dec 13, 2018

Thanks a lot

@sixsir

This comment has been minimized.

Copy link

sixsir commented Feb 22, 2019

Great work! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.