6

I am looking for a way to uninstall Atom on Ubuntu 17.10. Is there any script for it? I want to completely uninstall Atom from my machine.

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
Midhun
  • 163
  • 1
  • 1
  • 6

2 Answers2

11

To completely remove a package:

sudo apt purge <package_name>

In your case:

sudo apt purge atom

But if Atom was installed from snap? You have to remove it by snap. From the command line run this:

snap remove atom
BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
dolpa
  • 126
  • 3
  • What if you don't remember how you installed it? I guess you can try both but is there an easy way to check first? – Brian C Feb 25 '21 at 03:21
  • @BrianC You can run `snap list` and look for Atom in the output. If it's there, that means that it's installed with `snap`. If not, it's installed using `apt`/`apt-get`. – BeastOfCaerbannog Mar 24 '22 at 21:31
3

It's easy! If you have installed using snap, then run:

sudo snap remove atom

Else, using apt-get:

sudo apt-get remove atom

After this remove the dependencies using:

sudo apt-get autoremove

Done!

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
Jatin-CBS
  • 667
  • 6
  • 13