# Elastic agent fails to install on Centos 7

**URL:** <https://discuss.elastic.co/t/elastic-agent-fails-to-install-on-centos-7/329260>\
**Category:** Elastic Agent\
**Created:** [April 3, 2023, 11:04pm UTC](https://discuss.elastic.co/t/elastic-agent-fails-to-install-on-centos-7/329260 "2023-04-03T23:04:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 4, 2023, 1:05am UTC](https://discuss.elastic.co/t/elastic-agent-fails-to-install-on-centos-7/329260/2 "2023-04-04T01:05:37Z")

</div>

Hi @sblack Welcome to the Community!

> [@sblack](#):
>
> I tried manually attempt to update and that didn't work. So I removed the old installation and purged all remnants of the previous install, but still get the above error.

Where / How did you install the Elastic Stack: Self Managed or Elastic Cloud?

Are you trying to do Fleet Managed Agent or Standalone Agent?

How did you install the old elastic agent?

How did you remove the old agent?

And exactly how did you try to install the new elastic agent?

---

_[View the full topic](https://discuss.elastic.co/t/elastic-agent-fails-to-install-on-centos-7/329260)._
