Latest updated Amazon Linux 2.
# uname -a
Linux ip-10-10-10-10.maillion-doller-server.local 4.14.67-71.56.amzn2.x86_64 #1 SMP Tue Sep 4 21:37:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Try to install SSMTP for sending Email:
[ec2-user@ip-10-10-10-10 ~]$ yum search ssmtp
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Warning: No matches found for: ssmtp
No matches found
Not in the base repo, try install epel:
[ec2-user@ip-10-10-10-10 ~]$ sudo yum install epel-release -y
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 2.4 kB 00:00:00
No package epel-release available.
Error: Nothing to do
epel-release is available in Amazon Linux Extra topic "epel"
To use, run
# sudo amazon-linux-extras install epel
Learn more at
https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
Just do it Amazon way:
[ec2-user@ip-10-10-10-10 ~]$ sudo amazon-linux-extras install epel
Installing epel-release
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2extra-docker | 1.3 kB 00:00:00
amzn2extra-epel | 1.3 kB 00:00:00
amzn2extra-epel/2/x86_64/primary_db | 1.8 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================
Installing:
epel-release noarch 7-11 amzn2extra-epel 15 k
Transaction Summary
=======================================================================================================================================================================
Install 1 Package
Total download size: 15 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
0 ansible2 available [ =2.4.2 =2.4.6 ]
1 emacs available [ =25.3 ]
2 httpd_modules available [ =1.0 ]
3 memcached1.5 available [ =1.5.1 ]
4 nginx1.12 available [ =1.12.2 ]
5 postgresql9.6 available [ =9.6.6 =9.6.8 ]
6 postgresql10 available [ =10 ]
7 python3 available [ =3.6.2 ]
8 redis4.0 available [ =4.0.5 =4.0.10 ]
9 R3.4 available [ =3.4.3 ]
10 rust1 available \
[ =1.22.1 =1.26.0 =1.26.1 =1.27.2 ]
11 vim available [ =8.0 ]
12 golang1.9 available [ =1.9.2 ]
13 ruby2.4 available [ =2.4.2 =2.4.4 ]
14 nano available [ =2.9.1 ]
15 php7.2 available \
[ =7.2.0 =7.2.4 =7.2.5 =7.2.8 ]
16 lamp-mariadb10.2-php7.2 available \
[ =10.2.10_7.2.0 =10.2.10_7.2.4 =10.2.10_7.2.5
=10.2.10_7.2.8 ]
17 libreoffice available [ =5.0.6.2_15 ]
18 gimp available [ =2.8.22 ]
19 docker=latest enabled \
[ =17.12.1 =18.03.1 =18.06.1 ]
20 mate-desktop1.x available [ =1.19.0 =1.20.0 ]
21 GraphicsMagick1.3 available [ =1.3.29 ]
22 tomcat8.5 available [ =8.5.31 =8.5.32 ]
23 epel=latest enabled [ =7.11 ]
[ec2-user@ip-10-10-10-10 ~]$ yum update
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
You need to be root to perform this command.
Then Install it.
sudo yum install ssmtp -y
No comments:
Post a Comment