Uninstalling a package installed with amazon-linux-extras

14k Views Asked by At

How do you UNinstall a package installed with amazon-linux-extras??

sudo amazon-linux-extras install postgresql10

Installs it. Now... how do I remove it?

sudo amazon-linux-extras uninstall postgresql10

Nope.

sudo amazon-linux-extras remove postgresql10

Nope.

yum remove postgresql10

Nope.

WTH?

2

There are 2 best solutions below

2
On BEST ANSWER
sudo yum remove postgresql

In order to confirm we are removing what we did install with amazon-linux-extras, we can check the Repository after we run the sudo yum remove command:

enter image description here

0
On

Run sudo amazon-linux-extras info postgresql10 to list the yum package names to uninstall, then uninstall them by running sudo yum remove [package-list].