Update install procedure HOWTO for sme server

Release applicable: sme 6.0, 6.0.1

Author: Ray Mitchell - mitchellcpa_AT_yahoo.com.au

Contributor: HTH

Updated: 25 May 2004 v1

Problem:

Your want to update your sme server with the latest rpm releases for patches and security fixes available from the ibiblio e-smith (or other) updates sites.

 

Solution:

Follow these instructions.

 

Additional Information:

Updates for SME 6.0.1 are found on the smeserver mirrors. You can get a list of these mirrors by following the Downloads link on the contribs.org homepage.

A popular mirror site is:

ftp://ftp.ibiblio.org/pub/linux/distributions/smeserver/updates/6.0.1/RPMS/

 

Mitel publish updates for sme server v6.0 at the following site (& mirrors):

ftp://ftp.ibiblio.org/pub/linux/distributions/e-smith/updates/6.0/RPMS/i386/

ftp://ftp.ibiblio.org/pub/linux/distributions/e-smith/updates/6.0/RPMS/noarch/

 

Other updates sites which have been set up as yum repositories, have been created by users for their own purposes (both testing and production use). Anyone using these yum repositories should ascertain the appropriateness of the yum repository as a reliable source of update rpms.

 

Thanks:

This how to is based on a forum post by HTH see

http://contribs.org/modules/pbboard/viewtopic.php?t=22615&PHPSESSID=5b60d7b6f5b6a95cff327969a3767bf6

 

 

Checking your installed version of rpms

You can check which versions of rpms are installed by doing the following (replace the rpm name as required)

rpm -q rpmname

eg

rpm -q proftpd

proftpd-1.2.9-es1

 

 

Instal Procedure:

(using the ftp://ftp.ibiblio.org/pub/linux/distributions/e-smith/updates/6.0/RPMS site)

At the login prompt do the following (type Alt-F2 to get a prompt if required)

Log in as "root" with the admin password

Change directory to a location where you want to save the downloaded files/folder structure

eg

cd /home/e-smith/files/ibays/techsupport

wget -r -nH --cut-dirs=3 ftp://ftp.ibiblio.org/pub/linux/distributions/e-smith/updates/6.0/RPMS

cd e-smith/updates/6.0/RPMS

rpm -Uvh --oldpackage --replacepkgs --nodeps i386/* noarch/*

/sbin/e-smith/signal-event post-upgrade

/sbin/e-smith/signal-event reboot

 

 

Explanation of the command string for downloading the rpms

wget -r -nH --cut-dirs=3 ftp://ftp.ibiblio.org/pub/linux/distributions/e-smith/updates/6.0/RPMS

This will downloaded the files and folder structure from the nominated location and save them in a similar folder structure, but the -nH switch will remove the "ftp.ibiblio.org" part, and the --cut-dirs=3 switch will remove the "/pub/linux/distributions" part. The files will therefore be saved in the location the command is run from in the folder structure /e-smith/updates/6.0/RPMS.

Note that the recursive switch -r will place a /i386 and /noarch folder below that location.

Do

man wget

for more information

 

Explanation of the command string for installing/upgrading the rpms

rpm -Uvh --oldpackage --replacepkgs --nodeps i386/* noarch/*

The above command invokes the Red Hat Package Manager (rpm) to upgrade (-U switch) verbosely (-v) printing hashes for progress (-h) all packages in the i386 and noarch subdirectories.

You need the --oldpackage flag for the dovecot package, --nodeps for the SMEServer package and --replacepkgs for all packages that don't strictly need updating.

Do

man rpm

for more usage instructions

press

q

to quit the manual

 

 

Updating from other download updates sites

Follow the above instructions but replace the wget command string with details of the particular download site you wish to use

eg

wget -r -nH --cut-dirs=3ftp://ftp.ibiblio.org/pub/linux/distributions/smeserver/updates/6.0.1/RPMS/

Depending on the packages (rpms) to be updated you may not need all the install/upgrade command switches

eg

cd smeserver/updates/6.0.1/RPMS

rpm -Uvh *.rpm

/sbin/e-smith/signal-event post-upgrade

/sbin/e-smith/signal-event reboot