Cannot install Nginx on AWS EC2 AMI2 - Topic :topic: is not found

0

I would like to install Nginx as a reverse proxy on my AWS EC2 (OS: AMI2) instance.

When I try to install nginx, I get told that nginx is available in Amazon Linux Extra topics...

sudo yum install nginx

But when I try to install :topic:, I am told that Topic :topic: is not found.

sudo amazon-linux-extras install :topic:

I really don't know how to deal with this error.

Terminal Output

Jan Kreischer

Posted 2020-01-26T10:24:14.940

Reputation: 103

1I've never used AWS but I suspect you need to replace :topic: with the package name, either nginx1.12 or nginx1 ... – DavidPostill – 2020-01-26T10:29:36.333

yes you are absolutely right. I just tried to replace it with Nginx not with nginx1.12 or nginx1. So now it works and the problem is already solved .. – Jan Kreischer – 2020-01-26T10:30:24.083

Answers

0

You need to do the following:

  • Type amazon-linux-extras to list the packages that are there, and copy the version of nginx, for example nginx1.2
  • Then type sudo amazon-linux-extras install nginx1.2

Algeriassic

Posted 2020-01-26T10:24:14.940

Reputation: 723

yes absolutely right. That worked for me :) – Jan Kreischer – 2020-01-27T14:08:37.050