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.
Asked
Active
Viewed 2.2k times
6
-
It depends on the way you installed it. If you used another way, not mentioned in the current answers, please [edit] your question accordingly! – Melebius Jun 04 '18 at 07:11
-
Sudo apt remove atom. – Jon Mar 24 '22 at 21:29
-
Might work..... – Jon Mar 24 '22 at 21:30
2 Answers
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