July 09, 2003
Remove multi-language Solaris packages [ Software ]
A few quick steps to remove Solaris packages that I'll never use:
# for language in "Japanese Chinese Taiwanese Korean Thai French Russian Italian Spanish Swedish"; do
> pkginfo | grep $language >> /tmp/pkglist
> done
# awk '{ print $2 }' /tmp/pkglist > /tmp/pkgnames
# for entry in `cat /tmp/pkgnames`; do
> /usr/local/bin/yes | pkgrm $entry
> done
And the contents of /usr/local/bin/yes:
#!/bin/sh
# Script to emulate 'yes'
while [ 1 ]; do
echo "y"
done
# eof
Original content copyright ©1995-2006 Eric Dobbs, except where otherwise noted.
