-
AWS snap 사용하기카테고리 없음 2022. 7. 27. 02:18
https://forum.snapcraft.io/t/unofficial-snapd-repository-for-amazon-linux-2/24269/6
/# yum repolist
Loaded plugins: langpacks, priorities, update-motd
216 packages excluded due to repository priority protections
repo id
amzn2-core/2/x86_64
amzn2extra-epel/2/x86_64
epel/x86_64snapd-amzn2/x86_64
repolist: 38934위와 같이 snapd-가 들어가 있어야한다.
google:amazon-linux-2-64 /# yum list snapd\*
Loaded plugins: langpacks, priorities, update-motd
216 packages excluded due to repository priority protections
Available Packages
snapd.x86_64
snapd-debuginfo.x86_64
snapd-devel.noarch
snapd-glib.x86_64
snapd-glib-devel.x86_64
snapd-glib-tests.x86_64
snapd-qt.x86_64
snapd-qt-devel.x86_64
snapd-qt-qml.x86_64
snapd-qt-tests.x86_64
snapd-selinux.noarch추가적으로 위와 같이 내부 list가 떠야 yum install snapd가 가능하다.
cd /etc/yum.repos.d && wget https://people.canonical.com/~mvo/snapd/amazon-linux2/snapd-amzn2.repo
위 명령어를 통해 바로 적용이 가능하다.
그후에 systemctl enable --now snapd.socket
를 통해 error: cannot communicate with server: Post "http://localhost/v2/snaps/core": dial unix /run/snapd.socket: connect: no such file or directory
를 해결한다.