Skip to content

Instantly share code, notes, and snippets.

@mahantheshhv
Forked from marcesher/gist:7168642
Last active April 30, 2019 18:01
Show Gist options
  • Save mahantheshhv/30b2dc41fd731df245e1 to your computer and use it in GitHub Desktop.
Save mahantheshhv/30b2dc41fd731df245e1 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
@mahantheshhv
Copy link
Author

copied the comment from original

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

@bil9000
Copy link

bil9000 commented Sep 5, 2015

Hey ya'll line 4 has a script-o, should be:

yum install -y p7zip

@eastside
Copy link

eastside commented Apr 30, 2019

In Amazon Linux 2, yum-config-manager isn't installed, so you need to install it. Taken from here.

yum install yum-utils.noarch
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum-config-manager --enable epel
yum install p7zip

Or at least, this is what I had to do for the ECS-optimized version of Amazon Linux. ¯_(ツ)_/¯

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