[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Re: Command Line package install
- Subject: Re: [cobalt-users] Re: Command Line package install
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat Feb 14 09:06:00 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Sat, 14 Feb 2004, Peter Nixon wrote:
> Is the following script going to work ok for applying updates without breaking
> anything on the Cubes?
>
> #!/bin/bash
> echo Bulk package installer for Cobalt products
> echo Licence: GNU Public Licence Version 2
> for pkg in *.pkg; do
> echo Installing $pkg
> /usr/sausalito/sbin/pkg_prepare.pl -i -R -f $pkg
> wait
> done
We use this on RaQ550s, (csh script) which is very similar
# log the installation of pkgs
set log=/root/update.log
echo "Running updates" > $log
foreach file (*.pkg)
echo "installing $file" >> $log
echo "installing $file"
/usr/sausalito/sbin/pkg_prepare.pl -i -R -f $file >> $log
end
echo "Rebooting"
shutdown -r now
Gerald
--
http://frontstreetnetworks.com | http://raqware.com
Front Street Networks LLC, 229 Front Street, Ste.#C
New Haven, CT 06513-3203 | phone: +1-203-785-0699