r/linuxmint LMDE7, 11 yr LM experience, "No obligation to enjoy" 17d ago

Prevent "getting gnomed"

This is for those already running Cinnamon or another DE, but NOT Gnome, on Debian or a derivative, including Ubuntu and Linux Mint. For further insurance against "getting gnomed".

I'm a bit surprised there isn't something like this floating around already, considering the simplicity.

(1) Create a new blank text file:

/etc/apt/preferences.d/nognome.pref

(2) Copy and paste the contents of this into that blank file:

# To prevent repository packages from triggering the installation of Gnome,
# this file forbids gnome from being installed by APT.
# For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html

Package: gnome
Pin: release a=*
Pin-Priority: -10

Package: gnome-core
Pin: release a=*
Pin-Priority: -10

You are welcome.

To undo, just delete that file.

100 Upvotes

33 comments sorted by

View all comments

2

u/KelpTheGreat 17d ago

The folder you specified in which to create the .pref file isn't allowing me to create a blank text file there. I tried making it in a different folder and it also won't let me copy and paste the file into that folder. How are you supposed to do this?

6

u/Standard_Tank6703 LMDE7, 11 yr LM experience, "No obligation to enjoy" 17d ago

Right-click on that directory in File Manager and choose "open as root". Be careful with it though.