Ubuntu Remove Exim4

I’ve scoured over the net on how to permanently remove the Exim4 Mail Server from the Ubuntu OS and came across with this one command that did it. The other options that include purge with it didn’t work. So I’m sticking with this one since it is what made it work and I was able to reinstall Exim4 again.

apt-get remove exim4 exim4-base exim4-config exim4-daemon-light

Then just install Exim4 again with this command.

apt-get install exim4

If you are using an account that doesn’t have root access, add the command sudo first.

No TweetBacks yet. (Be the first to Tweet this post)

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(1 votes, average: 5.00 out of 5)
 Loading ...

tags: ,

7 Responses to “Ubuntu Remove Exim4”

  1. 1
    awclemen Says:

    Thanks, trying to remove exim was driving me nuts.

  2. 2
    tech Says:

    welcome. glad it helped you

  3. 3
    Maya Says:

    Thanks very much. I never would have figured this out on my own.

  4. 4
    tech Says:

    np. this took me more than a day to figure it out grrrrr

  5. 5
    Hervey Allen Says:

    If this doesn’t work - particularly if your dpkg repository is confused if you tried just typing “apt-get remove exim4″ first, try something along these lines:

    $ sudo apt-get install -f
    $ sudo apt-get install exim4
    $ dpkg-reconfig exim4-config
    $ sudo apt-get remove exim4-base exim4-config exim4 exim4-daemon-heavy
    $ sudo dpkg -purge exim4-base
    $ sudo dpkg -purge exim4-config
    $ sudo dpkg -purge exim4
    $ sudo dpkg -purge exim4-daemon-heavy

    There appears to be an error in the debian package that causes failure if you try to remove the meta package, exim4. The order of removal of packages is such that the exim daemon will be stopped, but the meta package expects the daemon to still be running, so the removal fails half-way and you are left with a corrupted apt database.

    Cheers.

  6. 6
    tech Says:

    hey, great input hervey. thanks

  7. 7
    Hervey Allen Says:

    My pleasure.

    Cheers.

Leave a Reply