openSUSE 11.2 – how to keep Mono, remove Windows.Forms

The new release of openSUSE ships Mono with Windows.Forms by default. For users who don’t mind Mono but would rather not have Windows.Forms installed, there are other options.

You could forcefully remove mono-winforms with something like:
sudo rpm --erase --nodeps mono-winforms

Admittedly this might cause issues with other packages which depend on it, but should work. Installing new applications shouldn’t ask for mono-winforms because it’s generally pulled in by a parent package (like mono-web) which is still installed.

Another option is to remove Mono and all dependencies:
sudo zypper remove mono

Add a lock for mono-winforms:
sudo zypper al mono-winforms

And then re-install those Mono applications you want. When the resolver errors, tell Zypper to “break the program by ignoring some of its dependencies”. This way the program should be installed with all Mono related dependencies, but without Windows.Forms.

As far as I know, none of these applications actually require mono-winforms, it’s just a package which is pulled in by default as a part of Mono.

Of course, there are other reasons to not use Mono and I’d recommend removing it altogether :-)

0 Responses to “openSUSE 11.2 – how to keep Mono, remove Windows.Forms”


  • No Comments

Leave a Reply