Re: How to remove exim4 when aptitude doesnt think its installed?
- To: firstname.lastname@example.org
- Subject: Re: How to remove exim4 when aptitude doesnt think its installed?
- From: Andy <email@example.com>
- Date: Thu, 01 Dec 2005 12:12:16 +0000
- Message-id: <[🔎] 438EE8A0.firstname.lastname@example.org>
- In-reply-to: <email@example.com>
- References: <438C8C03.firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
Bryan Donlan wrote:
On 11/30/05, T <email@example.com> wrote:
On Tue, 29 Nov 2005 17:12:35 +0000, Andy wrote:
How should I go about removing files relating to the exim4 package, when
aptitude doesn't think the package is installed?
This is the very situation that low level command dpg comes into play. Try:
dpkg --purge exim4
This won't work. Aptitude uses the dpkg databases to determine what is
installed. Additionally, exim4's just a metapackage depending on the
actual exim4 packages. In this case, he'll probably need to reinstall
exim4, then remove it. For example:
dpkg --force-depends --unpack exim4-base_4.50-8_i386.deb
dpkg --purge exim4-base exim4-daemon-light
Thanks for your suggestion.
I tried it this morning and found that while "exim4-base" installed and
purged fine, dpkg refused to install "exim4-daemon-light", complaining...
"exim4-daemon-light conflicts with mail-transport-agent. Postfix
provides mail-transport-agent and is installed."
After some further reading of the dpkg man page I ended up with the
following sequence of commands:
1) Download packages:
# wget ...
2) Install packages through dpkg. Note the use of --force-conflicts and
--force-overwrite. The later will cause files relating to the postfix
package to be over-written. (ouch!)
# dpkg --force-depends --unpack exim4_4.50-8_all.deb
# dpkg --force-depends --unpack exim4-base_4.50-8_i386.deb
# dpkg --force-depends --unpack --force-conflicts
# dpkg --force-depends --unpack --force-conflicts --force-overwrite
3) Purge packages:
# dpkg --purge exim4 exim4-base exim4-config exim4-daemon-light
4) Fix postfix. This should reinstall the files that were over-written
when forcing the install of exim4-daemon-light.
# aptitude reinstall postfix
This seems to have done the trick, but does anyone see any problems with
Thanks for pointing me in the right direction,