View Full Version : How to update spamassassin
bas1968
02-24-2007, 07:27 AM
We have running a old version of spamassassin on our Interworx server. How can I update this to the latest release without problems?
IWorx-Paul
02-24-2007, 01:47 PM
We just recently released a SpamAssasssin 3.1.8 RPM, run the command
yum update
as root on your server and it should be installed for you.
Paul
bas1968
02-24-2007, 02:58 PM
I´ve tried this. The server has updated some thing but not the SpamAssassin. There is still running SpamAssassin 3.0.2 (2004-11-16) on this server
IWorx-Paul
02-24-2007, 03:16 PM
You'll need to open a support ticket with us. Either your RPM database is having issues, or you're running a pretty old version of InterWorx, or something. We'll have to check it out, please open a support ticket here:
https://www.interworx.com/support/helpdesk/index.php?_m=tickets&_a=submit
Thanks,
Paul
Without me having to open a ticket for the same issue, with the following, can you tell me how to update using yum?
-------------------------
[root@tsh /]# yum update
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - Base
Server: Red Hat Linux 9 - Fedora Legacy - Updates
Server: InterWorx-CP - Generic
Server: InterWorx-CP - Red Linux 9
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
No Packages Available for Update
No actions to take
------------------------------
[root@tsh /]# yum list spamassassin
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - Base
Server: Red Hat Linux 9 - Fedora Legacy - Updates
Server: InterWorx-CP - Generic
Server: InterWorx-CP - Red Linux 9
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
Looking in Available Packages:
Name Arch Version Repo
--------------------------------------------------------------------------------
spamassassin i386 3.1.8-100.rht90.iworx interworx-cp-rht90
Looking in Installed Packages:
Name Arch Version Repo
--------------------------------------------------------------------------------
SpamAssassin i386 3.0.2-100.rht90.iworx db
------------------------------
So there is definitely an update, it sees it, but yum doesn't install it with a 'yum update' or a 'yum update spamassassin'
Any ideas? May help others as well.
IWorx-Paul
02-24-2007, 07:29 PM
Hi int,
Sorry I hadn't got around to updating this thread yet. Here's the issue and fix.
About a year ago we changed the name of the SpamAssassin RPM, and I had forgotten about it. You can run the command "yum upgrade" rather than "yum update" and it should get the new SpamAssassin version installed. (yum update is still the command you should normally run, this was just a special case).
Note that you probably only want to upgrade spamassassin - if it asks about other packages, be wary.
See this thread for issues a few folks had when trying to do this with solutions:
http://interworx.com/forums/showthread.php?t=913
Paul
Hi int,
Sorry I hadn't got around to updating this thread yet. Here's the issue and fix.
About a year ago we changed the name of the SpamAssassin RPM, and I had forgotten about it. You can run the command "yum upgrade" rather than "yum update" and it should get the new SpamAssassin version installed. (yum update is still the command you should normally run, this was just a special case).
Note that you probably only want to upgrade spamassassin - if it asks about other packages, be wary.
See this thread for issues a few folks had when trying to do this with solutions:
http://interworx.com/forums/showthread.php?t=913
Paul
Thanks for the quick reply Paul.
Tell me something though, if you can please. When I run yum upgrade, it fails because of my version of MySQL (upgraded last year sometime to 4.1.12 after much difficulty!). Trying to exclude MySQL results in 3 other packages wanting to be updated... is it safe to do so? This is what I see:
[root@tsh /]# yum upgrade
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - Base
Server: Red Hat Linux 9 - Fedora Legacy - Updates
Server: InterWorx-CP - Generic
Server: InterWorx-CP - Red Linux 9
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
Finding obsoleted packages
Resolving dependencies
......Unable to satisfy dependencies
Package mysql-max needs mysql >= 4.0, this is not available.
[root@tsh /]# yum --exclude=mysql upgrade
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - Base
Server: Red Hat Linux 9 - Fedora Legacy - Updates
Server: InterWorx-CP - Generic
Server: InterWorx-CP - Red Linux 9
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
Finding obsoleted packages
Resolving dependencies
..Dependencies resolved
I will do the following:
[update: spamassassin 3.1.8-100.rht90.iworx.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: perl-Net-CIDR-Lite 0.20-101.rht90.iworx.i386]
[deps: perl-Mail-SPF-Query 1.999.1-101.rht90.iworx.i386]
[deps: perl-Sys-Hostname-Long 1.4-101.rht90.iworx.i386]
Is this ok [y/N]:
Any ideas?
IWorx-Paul
02-24-2007, 07:49 PM
I should have mentioned, those perl modules are just fine. It is indeed ok :).
Paul
I should have mentioned, those perl modules are just fine. It is indeed ok :).
Paul
Thank you so much for the prompt replies (on a Sat. night much less!) Looks like it worked! Now to properly configure SpamAssassin to actually WORK! (it hasn't been for months now)
InterWorx support continues to be the best around, honestly...
Thanks Paul!
Henrik
02-24-2007, 09:05 PM
What's the major difference between upgrade and update?
IWorx-Paul
02-24-2007, 09:44 PM
"update" will update packages of the same name - "upgrade" looks for packages that, in RPM terms, "obsolete" other packages.
So in this case, the original RPM was named SpamAssassin-whatever, and the RPM name changed to "spamassassin-whatever". When that happens, the "spamassassin-whatever" obsoletes the old SpamAssassin package - so upgrade is needed. Since RPMS rarely change names, it's not needed in most cases.
Paul
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.