How to remove Mono from Ubuntu 10.10 Maverick Meerkat

sudo apt-get purge libmono* cli-common

The following packages will be REMOVED
cli-common* gbrainy* libappindicator0.1-cil* libart2.0-cil* libgconf2.0-cil*
libglade2.0-cil* libglib2.0-cil* libgmime2.4-cil* libgnome-vfs2.0-cil*
libgnome2.24-cil* libgnomepanel2.24-cil* libgtk2.0-cil*
liblaunchpad-integration1.0-cil* libmono-addins-gui0.2-cil*
libmono-addins0.2-cil* libmono-cairo2.0-cil* libmono-corlib2.0-cil*
libmono-i18n-west2.0-cil* libmono-management2.0-cil* libmono-posix2.0-cil*
libmono-security2.0-cil* libmono-sharpzip2.84-cil* libmono-system2.0-cil*
libndesk-dbus-glib1.0-cil* libndesk-dbus1.0-cil* mono-2.0-gac*
mono-csharp-shell* mono-gac* mono-gmcs* mono-runtime* tomboy*
0 upgraded, 0 newly installed, 31 to remove and 0 not upgraded.

Tags: ,

32 Comments

  • Bramkaandorp says:

    Is it just me, or is this the easiest removal of Mono ever? Or is this not all yet?

    I will not be using 10.10 (I’m an LTS person), but Seeing as how simple this command is, this seems to reflect how well Mono has meen handled in 10.10 (as in, all of mono is all under one header).

    Keep up the good work. I enjoy reading your articles.

    • Alan Lord says:

      I *think* I’ve got everything.

      There are only 2 mono-based applications in the default Ubuntu Desktop install; Tomboy & gbrainy.

    • Jo Shields says:

      The cli-common should be enough, actually.

      Most of the cruft previously was C libraries used by F-Spot. Without F-Spot, the removal process becomes correspondingly smaller (as does the disk usage)

      • luvr says:

        Purging just cli-common doesn’t catch everything. On my newly installed system, it purges only 18, instead of 31, packages. What does work is the following:

        sudo apt-get purge cli-common mono-runtime

  • […] This post was mentioned on Twitter by Alan Lord, Tim (Goblin). Tim (Goblin) said: RT @opensourcerer: New blog post – How to remove Mono from Ubuntu 10.10 Maverick Meercat: http://is.gd/fUPRG […]

  • stlouisubntu says:

    Actually, the complete command to remove the less than ideal defaults is:

    apt-get remove –purge libmono* libgdiplus cli-common evolution evolution-common evolution-couchdb evolution-data-server evolution-exchange evolution-indicator evolution-plugins evolution-webcal libedata-book1.2-2 libebackend1.2-0 libegroupwise1.2-13 libgdata-google1.2-1 libgdata1.2-1 ttf-indic-fonts-core ttf-kacst-one ttf-khmeros-core ttf-lao ttf-punjabi-fonts ttf-thai-tlwg ttf-unfonts-core ttf-wqy-microhei empathy empathy-common nautilus-sendto-empathy

    as several more less than ideal default applications also need to be removed such as evolution and empathy.

    Attached is a link to my Ubuntu “Saner-Defaults-Remix” which removes all mono, replaces evolution with Thunderbird with lightning, empathy with pidgin, adds gthumb, and also adds back aptitude. Please check it out:

    http://sourceforge.net/projects/ubuntu-sdr/files/

    Available for both lucid and maverick (maverick netbook and DVD images to come shortly.)

    This is intended (at least in part) as a continuation of the CLR-9.10 from directx (Chicken Little Remix.)

    • Alan Lord says:

      Thanks for the comment. Whilst my own is *just* to remove Mono, you do provide further trimming and alternatives some of which I concur.

      I also prefer Thunderbird to Evolution and recommend that you add the Thunderbird Indicator app from here: http://ubublogger.wordpress.com/ which is a great addition IMHO.

  • Homayoun says:

    Besides Fspot, Gbrainy and Tomboy, Gnome-do will be removed as well cuz it’s a mono based application.

    Just wanted to warn the ones who may use it.

    • Alan Lord says:

      Gnome-do is not installed by default therefore will not be removed by default either.

      If you install Gnome-do after removing Mono I assume that it’s dependencies, e.g. Mono, would be simply be reinstalled.

  • Brcourt says:

    Yes, but why would you want to remove Mono?

    • Alan Lord says:

      Good Question!

      Google is your friend 😉

      • Brcourt says:

        I was assuming it had to do with fear of patents, but I was curious about whether it could be something else.

        • Alan Lord says:

          @Brcourt,

          Many people have many different reasons for wanting to not use Mono. The purpose of this post is to help those who know they want to remove it, not tell them why they should.

          Arguments rage and rage on this subject and I doubt very much that opinions are likely to change in the foreseeable future.

    • Bramkaandorp says:

      I know someone who is not particularly invested in the open source world, but who hates .net.

      I once mentioned .net to him (the name “mono” didn’t ring any bells), and he promptly ordered me to clean my moth with soap.

      Does that answer your question?

  • Bramkaandorp says:

    @Brcourt (I can’t find a reply button)

    The guy I’m talking about maintains servers. I know it still sounds vague, but regardless, this guy knows his stuff. He doesn’t just hate it “because it is mono/.net”. He really knows how it works, as well as several other codes.

  • zack says:

    Just btw: When removing cli-common with aptitude, dependencies nicely install gnote to replace tomboy.

  • […] How to remove Mono from Ubuntu 10.10 Maverick Meercat […]

  • libre fan says:

    Many thanks for your trimmed command OpenSourcerer.

    I notice that ubuntu-mono isn’t removed. If you remove it you remove light-themes ubuntu-artwork and ubuntu-desktop.

    Light Themes are radiance and its twin
    ubuntu-artwork is «the Distributor Logo and it pulls in all the
    other components via Depends» not very clear to me
    ubuntu-desktop is only important if you upgrade to the next version through the net.

    Would you remove ubuntu-mono? Isn’t it part and parcel of that Mono trash?

  • Ed Landaveri says:

    Thank for your hard work. We do really appreciate it.

  • luvr says:

    May I point out a small spelling error in the title of this page?
    The name of the Ubuntu 10.10 release is Maverick Meerkat (i.e., “kat” with a “k,” instead of “cat” with a “c”).

  • luvr says:

    I found a way to make sure that mono won’t get reinstalled: Create a file “/etc/apt/preferences” with the following content:
    Package: cli-common mono-runtime
    Pin: version *
    Pin-Priority: -100

    I’m assuming here that any mono-related package will have at least cli-common and/or mono-runtime as a prerequisite; should you ever find any mono package that doesn’t require either of these (and that, therefore, can still be installed with this file in place), then you can add its name to the Package: line.

    For details about the “/etc/apt/preferences” file, you may want to consult the apt_preferences man page.

    • stlouisubntu says:

      Clever method, friend. However, I have found that apt-pinning seems to no longer work in maverick. I had thunderbird 2.0.24 pinned which worked fine in lucid but maverick wanted to update it and seemed to disregard my pin. This was even after I reinstalled aptitude. Have you seen apt-pinning actually work in maverick?

      • luvr says:

        The “/etc/apt/preferences” file, as I posted it, certainly does work in maverick. For instance, if I attempt to run the command:

        sudo apt-get install f-spot

        Then I get the following output:

        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        Some packages could not be installed. This may mean that you have
        requested an impossible situation or if you are using the unstable
        distribution that some required packages have not yet been created
        or been moved out of Incoming.
        The following information may help to resolve the situation:

        The following packages have unmet dependencies:
        f-spot : Depends: mono-runtime (>= 1.1.8.1) but it is not installable
        Depends: libflickrnet2.2-cil but it is not going to be installed
        Depends: libgconf2.0-cil (>= 2.24.0) but it is not going to be installed
        Depends: libglib2.0-cil (>= 2.12.10) but it is not going to be installed
        Depends: libgnome-keyring1.0-cil (>= 1.0.0) but it is not going to be installed
        Depends: libgnome2.24-cil (>= 2.24.0) but it is not going to be installed
        Depends: libgtk2.0-cil (>= 2.12.10) but it is not going to be installed
        Depends: libmono-addins-gui0.2-cil (>= 0.4) but it is not going to be installed
        Depends: libmono-addins0.2-cil (>= 0.4) but it is not going to be installed
        Depends: libmono-cairo2.0-cil (>= 2.4) but it is not going to be installed
        Depends: libmono-corlib2.0-cil (>= 2.6.3) but it is not going to be installed
        Depends: libmono-posix2.0-cil (>= 2.4) but it is not going to be installed
        Depends: libmono-sharpzip2.84-cil (>= 1.0) but it is not going to be installed
        Depends: libmono-simd2.0-cil (>= 1.0) but it is not going to be installed
        Depends: libmono-system-data2.0-cil (>= 2.6.3) but it is not going to be installed
        Depends: libmono-system-web2.0-cil (>= 1.9.1) but it is not going to be installed
        Depends: libmono-system2.0-cil (>= 2.6.3) but it is not going to be installed
        Depends: libndesk-dbus1.0-cil (>= 0.6.0) but it is not going to be installed
        E: Broken packages

        This is the very first time that I am using pinning, so I have no idea if its other features work as expected.

Leave a Reply to Alan Lord

XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>