Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Mar 16, 2010 12:59 pm 
Offline
Senior Newbie

Joined: Sun Sep 06, 2009 2:42 am
Posts: 19
When I do a "yum remove exim" it says it wants to remove things that look to me like I still need/want. Why is it wanting to remove crontabs for example? What is going on?

Removing:
exim i586 4.69-10.fc11 installed 3.6 M
Removing for dependencies:
anacron i586 2.3-78.fc11 installed 57 k
cronie i586 1.3-2.fc11 installed 134 k
crontabs noarch 1.10-30.fc11 installed 2.4 k
net-snmp i586 1:5.4.2.1-12.fc11 installed 788 k
net-snmp-libs i586 1:5.4.2.1-12.fc11 installed 4.5 M
php-snmp i586 5.2.9-2.fc11 installed 25 k
rpm i586 4.7.1-1.fc11 installed 1.9 M
rpm-libs i586 4.7.1-1.fc11 installed 733 k
rpm-python i586 4.7.1-1.fc11 installed 97 k
yum noarch 3.2.23-3.fc11 installed 3.4 M

Transaction Summary


Top
   
 Post subject:
PostPosted: Tue Mar 16, 2010 1:14 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Try...

yum remove --nodeps packagename

//just remember - you break it - you bought it//


Last edited by vonskippy on Tue Mar 16, 2010 1:15 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Tue Mar 16, 2010 1:14 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Many things depend on exim because they send mail (cron sends reports, for example). Is there a reason why you're trying to remove exim?


Top
   
 Post subject:
PostPosted: Tue Mar 16, 2010 1:17 pm 
Offline
Senior Newbie

Joined: Sun Sep 06, 2009 2:42 am
Posts: 19
Guspaz wrote:
Many things depend on exim because they send mail (cron sends reports, for example). Is there a reason why you're trying to remove exim?


This is what I thought was causing the problem. I want to use postfix instead of exim only because I know postfix.

Am I ok with removing without touching the dependencies?


Top
   
 Post subject:
PostPosted: Tue Mar 16, 2010 6:17 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Have you installed postfix first? Many of those dependencies _should_ be on the need for a mail and both exim and postfix should satisfy them.

At least that's how it works in CentOS, so I'd expect FC11 to be similar :-)

Also, just do "rpm -e" to remove the one package; that'll abort if other packages still depend on it but it won't try and remove other packages.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Tue Mar 16, 2010 9:33 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Usually when I install Postfix under debuntu, Exim is automatically removed. Can't say for Fedora, but I'd hope it's similar since that's 95% of cases.

The other 5%, well...

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Tue Mar 16, 2010 10:26 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
RedHat/Centos (and I think Fedora) uses the "alternatives" system. You can install multiple pieces of software that provide the same resources (eg a mailer) and then use alternatives to pick the one that actually gets used.

eg on my system:
Code:
% alternatives --display mta
mta - status is auto.
 link currently points to /usr/sbin/sendmail.postfix
/usr/sbin/sendmail.postfix - priority 30
 slave mta-mailq: /usr/bin/mailq.postfix
 slave mta-newaliases: /usr/bin/newaliases.postfix
 slave mta-pam: /etc/pam.d/smtp.postfix
 slave mta-rmail: /usr/bin/rmail.postfix
 slave mta-sendmail: /usr/lib/sendmail.postfix
 slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
 slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
 slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
 slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
Current `best' version is /usr/sbin/sendmail.postfix.


I'm not too sure how this handles init scripts. Obviously removing the unnecessary package afterwards fixes it :-)

Looking at the CentOS install/remove scripts, installation adds the rc links, installs the postfix system into alternatives. The remove script deletes the rc links and removes postfix from the alternatives system.

The sendmail scripts do similar.

So to switch from sendmail to postfix you'd install the postfix package, configure postfix as necessary, remove the sendmail package, start postfix.

I'd guess switching from exim to postfix should work the same way.

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Wed Mar 17, 2010 1:42 am 
Offline
Senior Newbie

Joined: Sun Sep 06, 2009 2:42 am
Posts: 19
Thanks for everyones suggestions, very much appreciated.

sweh, your points were spot on. I really learned something about how detailed
the package managers are.

I installed postfix and then did a remove on exim and it showed no dependencies were to be deleted.

Again, thanks everyone!


Top
   
 Post subject:
PostPosted: Sun Jul 24, 2011 1:32 am 
Offline
Senior Member

Joined: Sun Mar 28, 2010 2:43 pm
Posts: 76
Website: http://tomakefast.com
Location: Texas
Thanks for the tip.

Installing postfix (in Fedora) allowed me to cleanly remove just exim with "yum erase exim"

_________________
PHP Development @ Tomakefast


Top
   
 Post subject:
PostPosted: Sun Jul 24, 2011 9:57 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
FYI, Debian deriviatives also use an alternatives system of similar spirit, for things like sytemwide default editors, windowmanagers, and random tools.
Difference is that systemwide pieces of software, like an MTA, usually are set up so they don't allow installing two of them at the same time.
So yeah, 'aptitude purge exim4' would want to remove a lot of things depending on mail-transport-agent, but 'aptitude install postfix' would say 'Packages that will be installed: <postfix components here>; Conflicting packages that will be uninstalled: <exim components here>; do you want to continue?', and do the swap without killing rest of the system.
It's discussable which way is better; having more than one MTA on one system in very rare cases may be exactly what you want, but in 99% of cases it's a mistake that's gonna lead to a lot of pain. And if you really need it, you can edit the package to make it not conflict, and not try to take over system mailboxes, then install such a local modified version, I guess.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group