DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The ARM appliance I'm using is running Debian7 and has Exim4 pre-installed.
Since I don't need an MTA, I wanted to remove it, but it doesn't work:
Code:
# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1926/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1869/exim4
tcp6 0 0 :::22 :::* LISTEN 1926/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1869/exim4
udp 0 0 0.0.0.0:40866 0.0.0.0:* 1911/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:* 1911/dhclient
udp6 0 0 :::30977 :::* 1911/dhclient
# dpkg -l | grep exim
rc exim4 4.80-7 all metapackage to ease Exim MTA (v4) installation
ii exim4-base 4.80-7 armel support files for all Exim MTA (v4) packages
ii exim4-config 4.80-7 all configuration for the Exim MTA (v4)
ii exim4-daemon-light 4.80-7 armel lightweight Exim MTA (v4) daemon
# apt-get remove exim4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'exim4' is not installed, so not removed
The following packages were automatically installed and are no longer required:
dmsetup libdevmapper1.02.1 libevent-2.0-5 libgssglue1 libnfsidmap2 libtirpc1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Actually the package is not installed. The 'rc' status means the package has been removed but some configuration files are still in the system. You probably want to purge the package:
Code:
apt-get purge exim4
You also probably want to remove (and purge) the remaining exim4-related packages you have in your system.
As shown in the output of dpkg -l, exim is merely a metapackage, it doesn't contain any software, so removing it will also not remove any software. Usually the proper way to remove software is to remove the meta-packages and then run autoremove. This works, unless, for whatever reason, one of the packages that were pulled in by the meta-package is marked as installed manually.
I find it strange, though, that apt-get would go ahead and remove Exim4, and still leave it running, as shown by netstat.
Probably the config files that were still in your system were scripts and such that kept exim4 running. BTW, I forgot to tell you, when you need to purge a package, you don't have to remove it first, simply purge it and apt-get will remove and purge it right away.
edit: TobiSGD explained it better than me
Last edited by Hungry ghost; 11-21-2013 at 07:27 AM.
Probably the config files that were still in your system were scripts and such that kept exim4 running. BTW, I forgot to tell you, when you need to purge a package, you don't have to remove it first, simply purge it and apt-get will remove and purge it right away.
Just a little correction. The binaries are gone, so there is no application to keep running. The only thing left is the config files because it was never requested that they be removed, and apt is nice enough to remind you of that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.