This quick tutorial shows how to remove Snap applications from indexing in Ubuntu Software utility in Ubuntu 18.04 and higher.
Snap is a containerized software package developed by Canonical (company behind Ubuntu). It bundles most runtime libraries and can be running on most Linux desktops.
Snap is great. It makes some popular applications possible to install in Ubuntu, and backports latest version of applications without worrying about dependency issues.
There’s also downside to the Snap package. It’s large in file size, requires a daemon and not everyone loves that.
If you dislike or just don’t want to install any Snap applications, you can remove them from Ubuntu Software utility, so it will be faster and not display duplicate applications in search result.
1.) Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from application menu.
2.) When terminal opens, run command to remove the plugin package that handles Snap package indexing:
sudo apt remove gnome-software-plugin-snap
Type user password (no asterisk feedback due to security reason) for sudo prompt and hit Enter.
For any reason if you want to restore the change, simply install the plugin back via command:
sudo apt install gnome-software-plugin-snap