Skip to content

Instantly share code, notes, and snippets.

@P7h
Last active November 5, 2024 21:16
Show Gist options
  • 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
@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.

@liangzhao926
Copy link

liangzhao926 commented Nov 5, 2024

The CentOS archives moved. I found them here.

# wget https://archives.fedoraproject.org/pub/archive/epel/7.9/x86_64/Packages/p/p7zip-16.02-10.el7.x86_64.rpm
--2024-11-05 21:10:49--  https://archives.fedoraproject.org/pub/archive/epel/7.9/x86_64/Packages/p/p7zip-16.02-10.el7.x86_64.rpm
Resolving archives.fedoraproject.org (archives.fedoraproject.org)... 38.145.60.24, 38.145.60.22, 38.145.60.23
Connecting to archives.fedoraproject.org (archives.fedoraproject.org)|38.145.60.24|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 618060 (604K) [application/x-rpm]
Saving to: ‘p7zip-16.02-10.el7.x86_64.rpm’

100%[============================================================================================================================================>] 618,060     --.-K/s   in 0.08s

2024-11-05 21:10:50 (7.01 MB/s) - ‘p7zip-16.02-10.el7.x86_64.rpm’ saved [618060/618060]

# wget https://archives.fedoraproject.org/pub/archive/epel/7.9/x86_64/Packages/p/p7zip-plugins-16.02-10.el7.x86_64.rpm
--2024-11-05 21:11:04--  https://archives.fedoraproject.org/pub/archive/epel/7.9/x86_64/Packages/p/p7zip-plugins-16.02-10.el7.x86_64.rpm
Resolving archives.fedoraproject.org (archives.fedoraproject.org)... 38.145.60.22, 38.145.60.23, 38.145.60.24
Connecting to archives.fedoraproject.org (archives.fedoraproject.org)|38.145.60.22|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 990680 (967K) [application/x-rpm]
Saving to: ‘p7zip-plugins-16.02-10.el7.x86_64.rpm’

100%[============================================================================================================================================>] 990,680     --.-K/s   in 0.1s

2024-11-05 21:11:04 (8.73 MB/s) - ‘p7zip-plugins-16.02-10.el7.x86_64.rpm’ saved [990680/990680]

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

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