Koozali.org: home of the SME Server

Installing Updates

Nick Critten

Installing Updates
« on: November 11, 2003, 05:45:02 PM »
Hi everyone,

I've searched through it seems like hundreds of postings but i can't find the answer to my question anywhere...
Although I'm a Network Support Consultant, all my experience is with Window$ and I'm a proper newbie to using a linux shell so can you give any answers in baby steps please! :)

I have copied all of the .rpm files from the 6.0b3 updates directory into the /home/e-smith/files/users/admin/home directory by just dragging them into the admin users homedrive from my W2k Laptop...

How do I install the updates?

I know I'm going to have to do something along the lines of:

rpm -ivh
or
rpm -uvh

But how do I know whether to do an Update or Install? and is there a way to batch the installations? I don't much fancy sitting here all night typing in these enormous filenames! :)

Thankyou!

Nick

Dan Brown

Re: Installing Updates
« Reply #1 on: November 11, 2003, 05:47:16 PM »
From ftp://ftp.ibiblio.org/pub/linux/distributions/e-smith/dev/6.0dev/updates/6.0beta3/RPMS/README:

In order to be sure to activate these updates, install the RPMs using:

rpm -Uhv *rpm

then run these commands:

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

Please report any system malfunction to smebugs@mitel.com.

Nick Critten

Re: Installing Updates
« Reply #2 on: November 11, 2003, 05:47:22 PM »
Oh, and does it mater what order I install them in?

Cheers.

Nick

Nick Critten

Re: Installing Updates
« Reply #3 on: November 11, 2003, 05:48:43 PM »
Thanks Dan,

I feel like a right dunce now!!

Cheers!

Jim Danvers

Re: Installing Updates
« Reply #4 on: November 11, 2003, 09:36:14 PM »
Hey Nick...

... or you could use this one:
http://forums.contribs.org/index.php?topic=18580.msg73036#msg73036

From Greg Z.  That little perl script he whipped up works friggin' great!  I use it all the time when building 6.x boxes (either 'live' one or play/test ones)

-=- jd -=-

Paul Nesbit

Re: Installing Updates
« Reply #5 on: November 11, 2003, 11:18:59 PM »
Jim Danvers wrote:
>
> Hey Nick...
>
> ... or you could use this one:
> http://forums.contribs.org/index.php?topic=18580.msg73036#msg73036
>
> From Greg Z.  That little perl script he whipped up works
> friggin' great!  I use it all the time when building 6.x
> boxes (either 'live' one or play/test ones)

Before using that script, I suggest asking Greg to update his own repository, or that you modify the sript to use one of the mirrors.  (There are some missing updates from the repository the update.pl script fetches updates from.)

  Paul

Bob King

Re: Installing Updates
« Reply #6 on: November 12, 2003, 02:40:40 AM »
Nick Critten wrote:
>
> Oh, and does it mater what order I install them in?
>

The rpm -Uhv *rpm command installs all the rpms in the correct order.

Always look at the README file in the update directory before upgrading or running an upgrade script. Sometimes you will need to add a switch to the "rpm -Uhv *rpm" command. The most common one being "--replacepkgs" but somtimes "--oldpackage" is required.

Jim Danvers

Re: Installing Updates
« Reply #7 on: November 12, 2003, 02:43:58 AM »
Paul....

Good catch!  I never thought about that....  

Greg - yer script is cool!  ;)  You see'ing this?  

-=- jd -=-

Nick Critten

Re: Installing Updates
« Reply #8 on: November 12, 2003, 02:23:43 PM »
Thanks guys!

On another related question, is there any kind of file management program I can use to move files between directories on the SME box...

At the moment the only directories I can drag files into from my winblowz box are users homedrives.

Nick Critten

Re: Installing Updates
« Reply #9 on: November 12, 2003, 02:30:03 PM »
Ok maybe I'm being thick now...


The update worked on one box that was a fresh install of 6.0b3

When I tried it on my home SME box which was upgraded to 6.0b3 from 5.6 I am getting these errors....



[root@aquarius home]# rpm -Uvh *rpm
Preparing...                ########################################### [100%]
package e-smith-ldap-4.10.0-02 is already installed
package perl-CGI-2.91-4 (which is newer than perl-CGI-3.00-2) is already install
ed
file /usr/share/man/man3/CGI.3pm.gz conflicts between attempted installs of perl
-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Apache.3pm.gz conflicts between attempted installs
 of perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Carp.3pm.gz conflicts between attempted installs o
f perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Cookie.3pm.gz conflicts between attempted installs
 of perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Fast.3pm.gz conflicts between attempted installs o
f perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Pretty.3pm.gz conflicts between attempted installs
 of perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Push.3pm.gz conflicts between attempted installs o
f perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Switch.3pm.gz conflicts between attempted installs
 of perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/share/man/man3/CGI::Util.3pm.gz conflicts between attempted installs o
f perl-CGI-3.00-3 and perl-CGI-3.00-2
file /usr/lib/perl5/site_perl/esmith/Backup.pm conflicts between attempted insta
lls of e-smith-backup-1.12.1-02 and e-smith-backup-1.12.1-01
file /usr/share/locale/en_US/LC_MESSAGES/backup.po conflicts between attempted i
nstalls of e-smith-backup-1.12.1-02 and e-smith-backup-1.12.1-01
file /etc/e-smith/tests/20e-smith-formmagick/embedded-FormMagick.t conflicts bet
ween attempted installs of e-smith-formmagick-1.2.2-01 and e-smith-formmagick-1.
2.1-01
file /etc/e-smith/tests/20e-smith-formmagick/embedded-LexTester.t conflicts betw
een attempted installs of e-smith-formmagick-1.2.2-01 and e-smith-formmagick-1.2
.1-01
file /etc/e-smith/tests/20e-smith-formmagick/embedded-Tester.t conflicts between
 attempted installs of e-smith-formmagick-1.2.2-01 and e-smith-formmagick-1.2.1-
01
file /usr/lib/perl5/site_perl/esmith/FormMagick.pm conflicts between attempted i
nstalls of e-smith-formmagick-1.2.2-01 and e-smith-formmagick-1.2.1-01
file /usr/lib/perl5/site_perl/esmith/FormMagick/LexTester.pm conflicts between a
ttempted installs of e-smith-formmagick-1.2.2-01 and e-smith-formmagick-1.2.1-01
file /usr/lib/perl5/site_perl/esmith/FormMagick/Tester.pm conflicts between atte
mpted installs of e-smith-formmagick-1.2.2-01 and e-smith-formmagick-1.2.1-01
[root@aquarius home]#



Help!

 :)

Bob King

Re: Installing Updates
« Reply #10 on: November 13, 2003, 01:27:46 AM »
I use Midnight Commander just type mc at the command prompt.


Nick Critten wrote:
>
> Thanks guys!
>
> On another related question, is there any kind of file
> management program I can use to move files between
> directories on the SME box...
>
> At the moment the only directories I can drag files into from
> my winblowz box are users homedrives.

Bob King

Re: Installing Updates
« Reply #11 on: November 13, 2003, 01:35:13 AM »
To copy and manage files from your Win machine to SME look into WinSCP

http://winscp.vse.cz/eng/

Greg Zartman

Re: Installing Updates
« Reply #12 on: November 13, 2003, 02:06:10 AM »
> Before using that script, I suggest asking Greg to update his
> own repository, or that you modify the sript to use one of
> the mirrors.  (There are some missing updates from the
> repository the update.pl script fetches updates from.)

I've now set my repository to rsync with the SME mirrors on a nightly basis.  I've also updated my update.pl script to include logging of the update process and what not.

Regards,

Greg Zartman

Nick Critten

Re: Installing Updates
« Reply #13 on: November 13, 2003, 02:22:05 PM »
Thanks Bob!

Anyone any ideas regarding the errors when updating my home sme box?

Cheers!

Nick

Bob King

Re: Installing Updates
« Reply #14 on: November 14, 2003, 12:50:52 AM »
At one time there was a statement about using the --oldpackage switch when upgrading 6.03b because the upgrades are back ported to rpms used in the 6.0 Commercial release. I have not been able to locate that statement any more but there was an announcement made on the developer mailing list yesterday that says:

"Keep an eye on mirror sites today, and you'll find some new updates for
6.0b3. Install as usual, downgrading with --oldpackage if necessary."