[OpenIndiana-discuss] oi_151a update?

cpforum cpforum at orange.fr
Wed Feb 15 20:54:52 UTC 2012


I have updated to 151a2 too successfully 3 host.

Who knows this package coming from oi_148 : gnome/theme/cursor/dmz-cursor ?


# pkg list | grep -v 151
NAME (PUBLISHER) VERSION STATE UFOXI
gnome/theme/cursor/dmz-cursor 0.4-0.148 installé -----

====

Here a little contrib to update easily java6 (JRE or JDK )

$ cat upjava
#!/bin/ksh

export PATH=/usr/bin

# jre-6u31-solaris-i586.sh
# jre-6u31-solaris-x64.sh

#JAVADIR=/opt
JAVADIR=/opt/Oracle

JAVA=${1:-jre}
if [[ $JAVA != "jre" && $JAVA != "jdk" ]]
then
print -u2 "usage : upjava [jre|jdk]"
exit 1
fi

JAVATGZ=$PWD

count=$(ls $JAVA-*-solaris-*.sh | wc -l)
if (( count == 0 ))
then
print "No java archive found in current dir"
fi

if (( count > 2 ))
then
print "To many java archive"
ls $JAVA-*-*.sh
fi

if ! cd $JAVADIR
then
print -u2 "Can't change to base java install directory : $JAVADIR"
exit 2
fi

for java in $(ls $JAVATGZ/$JAVA-*-solaris-*.sh)
do
print "Processing $java archive"
chmod 700 $java
$java
done

dir=$(ls -tr | tail -1 )

rm -f $JAVADIR/$JAVA
ln -s $JAVADIR/$dir $JAVADIR/$JAVA
ls -ld $JAVADIR/${JAVA}*



More information about the OpenIndiana-discuss mailing list