Re: How to remove exim4 when aptitude doesnt think its installed?
--- Andy <[EMAIL PROTECTED]> wrote: > I had previously replaced exim4 with postfix, but because the file > system restore process only creates and over-writes files, but > doesn't > deletes unnecessary ones, the exim4 files remain. Usually, anything that provides the virtual package: mail-transport-agent is sufficient. > I cannot use aptitude to remove the package's files as normal because > > aptitude's state has been restored from backup along with everything > else; it doesn't think the package is installed. Supplying us with the command you've tried using, along with any output would be a start. Indeed, at this stage, I'd use dpkg: # dpkg -P --forget-old-unavail exim4 -- Thomas Adam ___ Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to remove exim4 when aptitude doesnt think its installed?
Bryan Donlan wrote: On 11/30/05, T <[EMAIL PROTECTED]> wrote: On Tue, 29 Nov 2005 17:12:35 +, Andy wrote: Hello List, 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: wget http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4-base_4.50-8_i386.deb http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4-daemon-light_4.50-8_i386.deb dpkg --force-depends --unpack exim4-base_4.50-8_i386.deb exim4-daemon-light_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 ... http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4_4.50-8_all.deb http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4-base_4.50-8_i386.deb http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4-config_4.50-8_all.deb http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4-daemon-light_4.50-8_i386.deb 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 exim4-config_4.50-8_all.deb # dpkg --force-depends --unpack --force-conflicts --force-overwrite exim4-daemon-light_4.50-8_i386.deb 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 this process? Thanks for pointing me in the right direction, Andy -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to remove exim4 when aptitude doesnt think its installed?
On 11/30/05, T <[EMAIL PROTECTED]> wrote: > On Tue, 29 Nov 2005 17:12:35 +, Andy wrote: > > > Hello List, > > > > 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: wget http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4-base_4.50-8_i386.deb http://ftp.us.debian.org/debian/pool/main/e/exim4/exim4-daemon-light_4.50-8_i386.deb dpkg --force-depends --unpack exim4-base_4.50-8_i386.deb exim4-daemon-light_4.50-8_i386.deb dpkg --purge exim4-base exim4-daemon-light
Re: How to remove exim4 when aptitude doesnt think its installed?
On Tue, 29 Nov 2005 17:12:35 +, Andy wrote: > Hello List, > > 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 T -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How to remove exim4 when aptitude doesnt think its installed?
Hello List, How should I go about removing files relating to the exim4 package, when aptitude doesn't think the package is installed? Let me explain... I have restored a crashed system by first doing a Debian base install and then restoring the file system from backup over the top. The result has been a fully functional system. (yay!) But I have a few files left over from the Debian base install which should no longer be present, for instance files relating to the exim4 package. I had previously replaced exim4 with postfix, but because the file system restore process only creates and over-writes files, but doesn't deletes unnecessary ones, the exim4 files remain. I cannot use aptitude to remove the package's files as normal because aptitude's state has been restored from backup along with everything else; it doesn't think the package is installed. Any suggestions? Many Thanks, Andy -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]