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 in Linux Administration by Rahul
• 8,980 points
102 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 by Soham
• 8,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 in Linux Administration by Edureka
• 9,320 points
25 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,340 points
540 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,190 points
969 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
22,807 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
1,496 views
0 votes
1 answer

How to execute a linux command repeatedly after a set time?

To watch the step every say 30 ...READ MORE

answered Jul 26, 2019 in Linux Administration by ajs3033
• 7,280 points
381 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,230 points
479 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
376 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
296 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP