old one: generating a list of packages that you'd like removed from a cluster

From: Dimitar Vasilev (dimitar.vassilev@gmail.com)
Date: Thu Aug 16 2007 - 11:17:59 EDT


Hi all,
While playing with my dis*ass*ster recovery I found out that I don't need a
bunch of packages on my e4500.
Playing for a while I found out a recipe I'd like to share with you for
generating a list of packages that
you'd like removed from the installation.

1. Go to the dir that contains the packages
# cd /expory/install/Solaris_10/Product
2. Select the packages you need to remove (all office packages in this case)
# find . -type d -print | fgrep -i -e "office" > /tmp/office
3. Filter out the content

#cut -f 1 -d / office | uniq > office_processed

4. Format in the needed format for rules file.

for i in `cat excess-packages`;do echo "package $i"; done > dest
5. Finishing touch
# while read line; do echo "$line delete" >> file.txt; done < source package
name

Hope it helps. Could be done in a better way but for me it works.

-- 
PP8P<P8QQ
Q PP0QP8P;P5P2
Dimitar Vassilev
GnuPG key ID: 0x4B8DB525
Keyserver: pgp.mit.edu
Key fingerprint: D88A 3B92 DED5 917E 341E D62F 8C51 5FC4 4B8D B525
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:13 EDT