Install Snap on Amazon Linux Workspace

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the steps to install snap/snapd on AWS Amazon Linux 2 Workspace. This is hard set to v0.1.0 release from albuild github org. It's probably a good idea to check for any later versions and update the variable.


One Liner

tag_version=v0.1.0 && \
rpm_version=2.36.3-0 && \
wget https://github.com/albuild/snap/releases/download/${tag_version}/snap-confine-${rpm_version}.amzn2.x86_64.rpm -P $HOME/Downloads && \
wget https://github.com/albuild/snap/releases/download/${tag_version}/snapd-${rpm_version}.amzn2.x86_64.rpm -P $HOME/Downloads && \
sudo yum -y install $HOME/Downloads/snap-confine-${rpm_version}.amzn2.x86_64.rpm $HOME/Downloads/snapd-${rpm_version}.amzn2.x86_64.rpm && \
sudo systemctl enable --now snapd.socket


Download 2 RPM

tag_version=v0.1.0 && rpm_version=2.36.3-0 && wget https://github.com/albuild/snap/releases/download/${tag_version}/snap-confine-${rpm_version}.amzn2.x86_64.rpm -P $HOME/Downloads
tag_version=v0.1.0 && rpm_version=2.36.3-0 && wget https://github.com/albuild/snap/releases/download/${tag_version}/snapd-${rpm_version}.amzn2.x86_64.rpm -P $HOME/Downloads

Install RPMs

rpm_version=2.36.3-0 && sudo yum -y install $HOME/Downloads/snap-confine-${rpm_version}.amzn2.x86_64.rpm $HOME/Downloads/snapd-${rpm_version}.amzn2.x86_64.rpm


Enable Socket

sudo systemctl enable --now snapd.socket


Related Articles


Sources