Skip to content

Instantly share code, notes, and snippets.

@P7h
Last active October 4, 2023 04:46
Show Gist options
  • Star 26 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save P7h/9fcccc54596ad05764128dec6f6cf78d to your computer and use it in GitHub Desktop.
Save P7h/9fcccc54596ad05764128dec6f6cf78d to your computer and use it in GitHub Desktop.
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
Copy link

Great work! Thanks!

@mingulov
Copy link

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

@ruiruige
Copy link

Thanks a lot

@sixsir
Copy link

sixsir commented Feb 22, 2019

Great work! Thanks!

@AlexGuironnetRTE
Copy link

Thanks !!

@SalimF
Copy link

SalimF commented Oct 1, 2022

What's about Alma Linux 8.6 (CentOS 8.6 )

@lucasnatanmelo
Copy link

404 Not Found here...

@talesmgodois
Copy link

A requisição HTTP foi enviada, aguardando resposta... 404 Not Found
2023-04-19 01:35:17 ERRO 404: Not Found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment