Skip to content

Instantly share code, notes, and snippets.

@marcesher
Last active December 27, 2022 10:29
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marcesher/7168642 to your computer and use it in GitHub Desktop.
Save marcesher/7168642 to your computer and use it in GitHub Desktop.
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
Copy link

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

Copy link

ghost commented Feb 20, 2016

Thanks for your gist !

I think

yum install -y p7ip

must be

yum install -y p7zip

?

@dmitrygusev
Copy link

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

@bilydr
Copy link

bilydr commented Dec 3, 2019

for Amazon Linux 2 :

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

@tassavurjamal
Copy link

Thanks

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

worked for me!

@eduardoferron
Copy link

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

@anatoly-scherbakov
Copy link

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

I didn't do the last cp command (you just have to use 7za), but this worked brilliantly in AWS CloudShell either. Thanks!

@siara-cc
Copy link

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

@eduardoferron Thanks! This worked for me!

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