Problem
The latest version of OSRcompat that I can find on CD or on the ftp
servers is 7.1.1. How do I find and install the OSRcompat 7.1.1b
package onto my OpenServer 5 system? Solution
1. Point your browser tohttps://ftp.scoexpert.com/download/405-000-000DL/udkfs.image.Zto download the UnixWare and OpenServer Development Kit Feature Supplement 7.1.1b
2. Assuming you have copied the image to /tmp/udkfs.image.Z then install it using:
zcat /tmp/udkfs.image.Z | pkgadd -d - OSRcompat3. The commandpkginfo -l OSRcompatshould show that it is fully installed.
You do not need to enter a license to install the OSRcompat package.
NOTES: OSRcompat 7.1.1b only supports OpenServer 5.0.6 and 5.0.5.The "Binary Compatibility Module 7.1.1 for SCO OpenServer (for UDK Compatibility)" also on the Download site is an earlier version.
NOTES: Before applying the package it is recommended to remove any existing
versions first. This has seen to be a problem for servers configured
in the French locale.You may see:executing preremove script /usr/adm/pkg/OSRcompat/install/preremove: test: unknown operator 3.2v5.0.4 pkgremove: error: preremove script was not successful Removal of <OSRcompat> failed
A "pkginfo -l" shows OSRcompat:status partially installed.Follow the steps below to remove the existing version prior to a upgrade:
1) Within "custom" we need to remove the current UDK references in
"custom".2) As the pkgrm isn't working then there must be some corruption
present.Rather than simply removing UDK we should just rename it first:
# mv /udk /udk.oldMove the OSRcompat package manually out of the way:
# mkdir -p /local/tmp/usr/adm/pkg# mv /usr/adm/pkg/OSRcompat /local/tmp/usr/adm/pkg/OSRcompatThe above is linked to /var/adm but we will need to:
# cp /var/adm/install/contents /local/tmpManually edit the file and remove all the UDK and OSRcompat references using your favorite editor.
This is effectively what pkgrm does so it shouldn't be listed in "pkginfo -l".
3) Once you have remove the package and the custom entry then you
should be able to add the latest OSRcompat as above.4) Assuming this then works fine, then we will need to remove the
copies that we made previously in step 2 to get back the disk
space.We can also use the following script to identify what files belong to what packages should the need arise:
#!/bin/ksh
# @(#) displays pkgname a given file (pattern) comes from
# pkgchk -l -p also works (except for symlinks)[ $# = 0 ] && {
p=$(basename $0)
print -u2 $"$p - displays pkgname a file comes from\nusage: $p
pathnamePattern"
exit 1
}
f=$1
#display first and last field, fields space separatediF="/var/sadm/install/contents"
[ -f $iF ] || iF="/var/adm/install/contents"
grep $f $iF | sed 's/\(.[^ ]\) .* \(.*\)$/\1 \2/'NOTE: For example, to load the latest UDK onto an OpenServer 5.0.6 server to
run Java 1.3.1_20:I notice that the 5.0.7 Media Kit has a later UW7.1.4 UDK in it.
So:# mount /dev/cd0 /mnt
# pkgadd -d /mnt OSRcompatAnd selected the UDK Compatibility Module from N to Y
# pkgadd -d /mnt uwrfontsThe JRE for 1.3.1_20 is in VOLUME format which differs from the Release Note instructions and can be installed via "custom".