certbot for amazone linux 2
[root@ip-172-31-18-21 setup]# cd /etc/yum.repos.d/
[root@ip-172-31-18-21 yum.repos.d]# wget https://people.canonical.com/~mvo/snapd/amazon-linux2/snapd-amzn2.repo
--2021-07-06 21:42:46-- https://people.canonical.com/~mvo/snapd/amazon-linux2/snapd-amzn2.repo
Resolving people.canonical.com (people.canonical.com)... 91.189.89.62
Connecting to people.canonical.com (people.canonical.com)|91.189.89.62|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 309
Saving to: ‘snapd-amzn2.repo’
100%[==========================================================>] 309 --.-K/s in 0s
2021-07-06 21:42:46 (25.7 MB/s) - ‘snapd-amzn2.repo’ saved [309/309]
[root@ip-172-31-18-21 yum.repos.d]# vi /etc/yum.conf
[root@ip-172-31-18-21 yum.repos.d]# yum install snapd
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
amzn2extra-docker | 3.0 kB 00:00:00
amzn2extra-epel | 3.0 kB 00:00:00
amzn2extra-nginx1 | 3.0 kB 00:00:00
epel/x86_64/metalink | 7.1 kB 00:00:00
kibana-7.x | 1.3 kB 00:00:00
mongodb-org-4.4 | 2.5 kB 00:00:00
snapd-amzn2 | 3.0 kB 00:00:00
snapd-amzn2/x86_64/primary_db | 8.8 kB 00:00:00
225 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package snapd.x86_64 0:2.51-1.amzn2.1 will be installed
--> Processing Dependency: snap-confine(x86-64) = 2.51-1.amzn2.1 for package: snapd-2.51-1.amzn2.1.x86_64
--> Processing Dependency: squashfs-tools for package: snapd-2.51-1.amzn2.1.x86_64
--> Running transaction check
---> Package snap-confine.x86_64 0:2.36.3-0.amzn2 will be updated
---> Package snap-confine.x86_64 0:2.51-1.amzn2.1 will be an update
---> Package squashfs-tools.x86_64 0:4.3-0.21.gitaae0aff4.amzn2.0.1 will be installed
--> Processing Dependency: liblzo2.so.2()(64bit) for package: squashfs-tools-4.3-0.21.gitaae0aff4.amzn2.0.1.x86_64
--> Running transaction check
---> Package lzo.x86_64 0:2.06-8.amzn2.0.4 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Installing:
snapd x86_64 2.51-1.amzn2.1 snapd-amzn2 16 M
Installing for dependencies:
lzo x86_64 2.06-8.amzn2.0.4 amzn2-core 60 k
squashfs-tools x86_64 4.3-0.21.gitaae0aff4.amzn2.0.1 amzn2-core 101 k
Updating for dependencies:
snap-confine x86_64 2.51-1.amzn2.1 snapd-amzn2 2.8 M
Transaction Summary
====================================================================================================
Install 1 Package (+2 Dependent packages)
Upgrade ( 1 Dependent package)
Total download size: 19 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/4): lzo-2.06-8.amzn2.0.4.x86_64.rpm | 60 kB 00:00:00
(2/4): squashfs-tools-4.3-0.21.gitaae0aff4.amzn2.0.1.x86_64.rpm | 101 kB 00:00:00
(3/4): snapd-2.51-1.amzn2.1.x86_64.rpm | 16 MB 00:00:04
(4/4): snap-confine-2.51-1.amzn2.1.x86_64.rpm | 2.8 MB 00:00:13
----------------------------------------------------------------------------------------------------
Total 1.4 MB/s | 19 MB 00:00:13
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Updating : snap-confine-2.51-1.amzn2.1.x86_64 1/5
Installing : lzo-2.06-8.amzn2.0.4.x86_64 2/5
Installing : squashfs-tools-4.3-0.21.gitaae0aff4.amzn2.0.1.x86_64 3/5
Installing : snapd-2.51-1.amzn2.1.x86_64 4/5
Cleanup : snap-confine-2.36.3-0.amzn2.x86_64 5/5
Verifying : lzo-2.06-8.amzn2.0.4.x86_64 1/5
Verifying : snapd-2.51-1.amzn2.1.x86_64 2/5
Verifying : snap-confine-2.51-1.amzn2.1.x86_64 3/5
Verifying : squashfs-tools-4.3-0.21.gitaae0aff4.amzn2.0.1.x86_64 4/5
Verifying : snap-confine-2.36.3-0.amzn2.x86_64 5/5
Installed:
snapd.x86_64 0:2.51-1.amzn2.1
Dependency Installed:
lzo.x86_64 0:2.06-8.amzn2.0.4 squashfs-tools.x86_64 0:4.3-0.21.gitaae0aff4.amzn2.0.1
Dependency Updated:
snap-confine.x86_64 0:2.51-1.amzn2.1
Complete!
[root@ip-172-31-18-21 yum.repos.d]# systemctl enable --now snapd.socket
Created symlink from /etc/systemd/system/sockets.target.wants/snapd.socket to /usr/lib/systemd/system/snapd.socket.
[root@ip-172-31-18-21 yum.repos.d]# snap install core
error: too early for operation, device not yet seeded or device model not acknowledged
[root@ip-172-31-18-21 yum.repos.d]# snap refresh core
snap "core" is not installed
[root@ip-172-31-18-21 yum.repos.d]# snapd install core
-bash: snapd: command not found
[root@ip-172-31-18-21 yum.repos.d]# snap install core
2021-07-06T21:44:48+07:00 INFO Waiting for automatic snapd restart...
core 16-2.51.1 from Canonical✓ installed
[root@ip-172-31-18-21 yum.repos.d]# snap refresh core
snap "core" has no updates available
[root@ip-172-31-18-21 yum.repos.d]# snap install --classic certbot
certbot 1.16.0 from Certbot Project (certbot-eff✓) installed
[root@ip-172-31-18-21 yum.repos.d]# ln -s /snap/bin/certbot /usr/bin/certbot
Last updated
Was this helpful?