0

I accidentally deleted /etc/services file from my ec2 instance on AWS running Amazon Linux.

How can I restore this file?
In Ubuntu, I found out that this can be done using netbase package, how can this be achieved in Amazon Linux(centOS flavor) ?

alexander.polomodov
  • 1,068
  • 3
  • 10
  • 14

1 Answers1

0

You can just copy the file from another instance, or because it is part of the setup package, you can run:

yum reinstall setup
guzzijason
  • 1,410
  • 8
  • 18