Koozali.org: home of the SME Server

Updating SME

Crome

Updating SME
« on: November 13, 2005, 02:57:44 PM »
I'm a bit confused here. I read the guidelines outlined on this link (http://no.longer.valid/phpwiki/index.php/How%20to%20update%20SME%20Server) and I issued a yum update. That seems to work. But I guess this only updates a few packages. For example, apache is still on 1.3.27-2 and not 1.3.27-8. How can I get my SME server completely up-to-date? Are not all updates covered by yum? Do I need to manually install all other packages in http://mirror.contribs.org/smeserver/releases/6.0.1/updates-common/i386?

Nlighten me, please...

Offline psoren

  • *
  • 371
  • +0/-0
Re: Updating SME
« Reply #1 on: November 13, 2005, 07:21:40 PM »
Quote from: "Crome"
I'm a bit confused here. I read the guidelines outlined on this link (http://no.longer.valid/phpwiki/index.php/How%20to%20update%20SME%20Server) and I issued a yum update. That seems to work. But I guess this only updates a few packages. For example, apache is still on 1.3.27-2 and not 1.3.27-8. How can I get my SME server completely up-to-date? Are not all updates covered by yum? Do I need to manually install all other packages in http://mirror.contribs.org/smeserver/releases/6.0.1/updates-common/i386?

Nlighten me, please...


Well, your server is up to date if it has the latest "stable an secure" packages, not the latest version numbers. There are some options in /etc/yum.conf that you can change for testing purposes, but i don't know what that gives you since i don't use it. If you want newer packages, then you have to find and install manually. You can maybe also find some contribs with new versions on a few things here on these pages.

Per

Crome

Re: Updating SME
« Reply #2 on: November 13, 2005, 08:27:45 PM »
Quote from: "psoren"
Well, your server is up to date if it has the latest "stable an secure" packages, not the latest version numbers.

I agree to that but for example Apache 1.3.27-8 patches some bugfixes (http://forums.contribs.org/index.php?topic=29006.0) and wasn't installed using yum...

I don't want the latest packages. I just want the known security bugs to be fixed. What should I do for that? Is using yum update enough or should I install packages manually too?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Updating SME
« Reply #3 on: November 13, 2005, 09:54:14 PM »
Crome

After running yum, did you do
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

Note this comment from the link you provided
"In the case of these four updates it is essential that apache is restarted for the update to take effect. This need not be a full re-boot."

You can always download the packages in the updates folder to an empty folder on your server, then do
rpm -Uvh *.rpm
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

rather than use yum.
...

Crome

Updating SME
« Reply #4 on: November 13, 2005, 10:16:46 PM »
Ray,

1) I did the post-upgrade and reboot thing. However, when I do an rpm -qa | grep apache I get apache 1.3.27-2. I thought 1.3.27-8 was supposed to be installed with the yum update??

2) What do you mean with download the packages? Do you mean all the packages under http://mirror.contribs.org/smeserver/releases/6.0.1/updates-common/i386? Then why are they not installed with yum?

Offline raem

  • *
  • 3,972
  • +4/-0
Updating SME
« Reply #5 on: November 13, 2005, 11:03:28 PM »
Crome

> What do you mean.....

You can manually download all or some or one of the packages as necessary.
In your case if apache has not been upgraded for some reason then just download that package and install it using
rpm -Uvh apache-1.3.27-8.legacy.i386.rpm
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot


> Then why are they (apache) not installed with yum?

I don't know, perhaps that package was not in the updates-common folder when you ran the yum update ???

You could try running
yum update
again.
It should pick up & install any "new/missing" packages that were not upgraded the first time around.

Have you installed the later version of yum from
http://mirror.contribs.org/smeserver/releases/6.0.1/updates/i386/
ie
yum-1.0.3-7sme05.noarch.rpm
...

vaypers

Updating SME
« Reply #6 on: November 14, 2005, 12:58:35 PM »
I am running SME 6.0.1.  I just tried to install yum to update the system.

I installed python first:
(rpm-python-4.0.4-7x.18.i386.rpm)
then yum:
(yum-1.0.3-7sme05.noarch.rpm).

When I run yum I get this error:
[root@sme root]# yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pyc

Can someone please explain what is wrong, and how to fix.  Many Thanks.