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,670 points
2,022 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,700 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,670 points
535 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,440 points
1,279 views
0 votes
1 answer

bash: telnet: command not found

Indeed you would have to introduce telnet ...READ MORE

answered May 27, 2022 in Linux Administration by Korak
• 5,820 points
1,099 views
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,210 points
2,065 views
0 votes
1 answer

Error saying "Failed to start httpd.service: Unit httpd.service not found."

Execute the following steps or make sure ...READ MORE

answered May 14, 2019 in Linux Administration by Kiara
36,438 views
0 votes
1 answer

To attach a file using mail command on Linux

$ echo | mutt -a syslogs.tar.gz admin@domain.org READ MORE

answered Jun 28, 2019 in Linux Administration by Upasana
• 8,620 points
2,586 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
943 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
905 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
640 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP