Amazon Linux apt-get command not found

0 votes

I have been 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 broken links to this package. I am using Putty on a windows machine if that information helps. I currently have low to none experience in linux environments.

I am running the following version of Linux

Linux ip-172-31-37-96 3.14.48-33.39.amzn1.x86_64 #1 SMP Tue Jul 14 23:43:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Can anyone help with that?

Feb 11, 2022 in Linux Administration by Rahul
• 9,690 points
4,141 views

1 answer to this question.

0 votes
Amazon Linux is CentOs-based which means that it is RedHAT-based. The RH-based installs would not use apt-get but rather use yum. A search such as yum search httpd would help you along with displaying the available Apache packages. Please Note that Amazon Linux 2 has switched from CentOS since the writing of this answer, but still uses yum.
answered Feb 11, 2022 by Soham
• 9,730 points

Related Questions In Linux Administration

0 votes
0 answers

wget command not found on linux server

I have a linux server (completely new, ...READ MORE

Apr 25, 2022 in Linux Administration by Edureka
• 13,690 points
1,607 views
0 votes
1 answer

Error lscpu: command not found.

Hi@akhtar, By default, this command should present in ...READ MORE

answered Oct 12, 2020 in Linux Administration by MD
• 95,460 points
2,794 views