Skip to content

Instantly share code, notes, and snippets.

@Tsagadai
Last active December 3, 2019 04:24
Show Gist options
  • Save Tsagadai/ef30dda733cd77fbd1c4dc321d4f6ed3 to your computer and use it in GitHub Desktop.
Save Tsagadai/ef30dda733cd77fbd1c4dc321d4f6ed3 to your computer and use it in GitHub Desktop.
#!/bin/bash
# install 7zip on aws linux
if grep --quiet 'PRETTY_NAME="Amazon Linux 2"' /etc/os-release
then
# For aws linux 2
sudo amazon-linux-extras install -y epel
else
# for AWS linux 1
sudo yum install -y epel-release
sudo yum-config-manager --enable epel
fi
sudo yum install -y p7zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment