| How to manually add locale pkgs on Solaris 10 |
|
|
|
| Written by Patrick H. Piper |
localeadm -l -vThis command will list the currently installed locale related pkg files. The output of this report is saved in /usr/sadm/lib/localeadm/locales.list. I attempted to use the following command to upate my current (partial) installation of the en_US locale: localeadm -a en_US.UTF-8 -d /cdrom/cdrom0But this produced the following error message: Warning! No Solaris packages exist in /cdrom/cdrom0 After several attempts, I opted to perform the manual method of updating my locale support. I decided that the best course of action was to perform the following:
To remove the currently installed en_US locale pkgs, you issue the following command: localeadm -r en_US Once removed, I was able to identify the names of all pkg files that are required for the en_US.UTF-8 locale on Solaris 10 Sparc. Please see the following URL for your particular release of Solaris 10 OS: SUNW5ttf Next, I created a response file that would be used to pass responses to questions that are normally asked by the pkgadd command when installing pkg files. The response file can be passed to the pkgadd command so you can bypass having to supply arguments to pkg installation commands. Here is my response file: mail= Last, I had to create a shell script that would read the pkg file and use the response file in a loop and perform the appropriate pkgadd command. Here is a copy of the installpkg.sh file that was used to perform the installations: #!/bin/sh for pkg in `cat pkg` Quite simply, this script copies the directory containing the pkg files and places the directory in /tmp. Next, the pkgadd command is called on the pkg directory and passes the response file in. Each package is installed one at a time, until they are all installed. You will have output that shows the success and/or failure for each and every pkg. localeadm -q en_US.UTF-8 -v This satisfied my need to manually install locale support for the en_US.UTF-8 pkg files. |
| Last Updated on Monday, 23 February 2009 19:17 |










