How to safely remove monero-gui?

It seems all my workstations have monero-gui installed automatically with normal updates. How can I safely remove it?

user@host:~$ sudo apt remove monero-gui
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dummy-dependency
The following packages will be REMOVED:
  monero-gui qubes-whonix-workstation whonix-workstation-packages-recommended-gui
  whonix-workstation-shared-packages-shared-meta
The following NEW packages will be installed:
  dummy-dependency
0 upgraded, 1 newly installed, 4 to remove and 0 not upgraded.
Need to get 52.0 kB of archives.
After this operation, 351 MB disk space will be freed.
Do you want to continue? [Y/n]

Usually difficult as per Debian Packages - Whonix

But in this case maybe easier since package dummy-dependency can satisfy the dependency.

sudo apt install dummy-dependency
sudo apt remove monero-gui

Untested.

More info on dummy-dependency.

apt-cache show dummy-dependency

Description: dummy package to satisfy architecture specific dependencies
A metapackage, which satisfies the dependency on:
.

  • bindp
  • lkrg
  • kloak
  • hardened-malloc
  • tb-updater
  • tb-starter
  • tb-default-browser
  • secbrowser
  • tirdad
  • binaries-freedom
  • monero-gui
    .
    This package cannot provide a real implementation of that package. It is only
    a dummy to satisfy the dependency.
    .
    Safe to remove if its removal does not remove another metapackage, which is
    not safe to remove.

dummy-dependency was designed for a different purpose but it might work here too. I haven’t tested if it will prevent upgrading of any other packages such as tb-updater but I guess chances are good there won’t be issues.

Why remove monero-gui anyhow? It does not conflict with any locally installed monero binaries (such as testing versions or something) if you do not start any binaries provided by monero-gui / not start if from start menu.