Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
install 7zip on linux
In this case, in AWS Linux:
yum-config-manager --enable epel
yum install -y p7ip
cp /usr/bin/7za /usr/bin/7z
7z
@chrislovecnm

This comment has been minimized.

Copy link

@chrislovecnm chrislovecnm commented Jan 19, 2015

The rpm names have changed a bit at least on Amazon Linux AMI release 2014.09

7zip-plugins.x86_64 : Additional plugins for p7zip
p7zip.x86_64 : Very high compression ratio file archiver

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Feb 20, 2016

Thanks for your gist !

I think

yum install -y p7ip

must be

yum install -y p7zip

?

@dmitrygusev

This comment has been minimized.

Copy link

@dmitrygusev dmitrygusev commented Nov 6, 2017

you may need to sudo yum install -y epel-release first, i.e. if you're building a Docker image FROM amazonlinux:latest

@bilydr

This comment has been minimized.

Copy link

@bilydr bilydr commented Dec 3, 2019

for Amazon Linux 2 :

sudo amazon-linux-extras install epel
sudo yum install p7zip -y
@tassavurjamal

This comment has been minimized.

Copy link

@tassavurjamal tassavurjamal commented Nov 27, 2020

Thanks

sudo amazon-linux-extras install epel
sudo yum install p7zip -y

worked for me!

@eduardoferron

This comment has been minimized.

Copy link

@eduardoferron eduardoferron commented Jan 31, 2021

Thank you, on AWS Linux 2 this worked for me:

sudo amazon-linux-extras install epel
sudo yum install p7zip -y
sudo cp /usr/bin/7za /usr/bin/7z

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