I don't like gedit and always use geany or vim or something else. Removing it from my current Debian testing install also removes the
cinnamon-desktop-environment meta package because it depends on gedit. This meta package:
depends on all programs needed to have a fully fledged desktop environment. Install this if you want a complete cinnamon desktop, including graphical apps that allow users to perform almost all everyday tasks.
After removing it, apt shows that 209 packages are no longer necessary (because nothing depends on them) including Pidgin, LibreOffice, Gnome System Monitor, etc. Next time I want to run autoremove for another uninstalled application, it would remove all of them.
I guess the solution is to manually
apt-get install the packages I actually want to have (i.e. Pidgin, LibreOffice, System Monitor, etc.), but there are also a bunch of packages of which I have no idea what they do. Many of them are probably dependencies of the aforementioned, but I don't know. I'd have to check them all manually. Some look unrelated, like
apt-cache rdepends doesn't show anything I recognize).
Another "solution" is to
apt-get install the whole list of packages that it would otherwise autoremove, but that's an ugly hack because it would no longer know which packages were installed because of dependencies and which were installed because I want them to be installed.
I could also modify
cinnamon-desktop-environment (e.g. by creating my own
.deb) in some way that it doesn't depend on gedit while maintaining the other dependencies. I'm not sure how exactly, but it doesn't sound too hard. The issue with this is that it probably does not update anymore when there are updates because I installed a custom version of it.
Thinking about creating my own package, I looked into
cinnamon-desktop-environment's dependencies. Surprise: it depends on firefox, which is not even available in Debian. And it depends on iceweasel, which I already uninstalled with no trouble. I don't understand.
How do I go about removing gedit without messing up my desktop environment?