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,680 points
2,875 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,710 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,028 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
1,939 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
2,055 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,220 points
2,886 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
1,398 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
1,502 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
954 views
0 votes
0 answers

Linux command to display date in unix format

What command can I use in Linux ...READ MORE

Apr 13, 2022 in Linux Administration by Aditya
• 7,680 points
684 views
0 votes
0 answers

Can't connect cloudflare warp vpn in linux

I installed and set up Cloudflare warp ...READ MORE

Apr 13, 2022 in Linux Administration by Aditya
• 7,680 points
1,593 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