Amazon Linux: apt-get: command not found

后端 未结 10 757
闹比i
闹比i 2020-12-22 20:47

I\'m trying to install an apache server on my AWS instance, however, it seems that it doesn\'t have the apt package installed.

I googled and all I found was some bro

10条回答
  •  既然无缘
    2020-12-22 21:06

    If you're using Amazon Linux it's CentOS-based, which is RedHat-based. RH-based installs use yum not apt-get. Something like yum search httpd should show you the available Apache packages - you likely want yum install httpd24.

    Note: Amazon Linux 2 has diverged from CentOS since the writing of this answer, but still uses yum.

提交回复
热议问题