Dennis Clarke schrieb:
If I continually grep for staroffice8 in /var/sadm/install/contents and then
pkgrm those packages until finally grep returns nothing I would expect that
the staroffice8 directory in /opt would be gone also.
sounds complicated.. I've written http://openbios.org/~oxygene/sortpackages.sh to get things ordered correctly for pkgrm. (the same for pkgadd would be only one inversion away, but I didn't need it like that yet)
use as: (with bash/zsh-style nested expansions)
pkgrm $( sortpackages.sh $( cd /var/sadm/pkg; grep BASEDIR=/opt/staroffice8 */pkginfo |cut -d/ -f1) )
# rmdir staroffice8/
The base dir is generated implicitely, and thus tracked nowhere.
It's debatable if this is the "right" behaviour, or if BASEDIR should be installf'd to each package (so the last one removed drops it). On first glance, I can see no side-effect that matters in a significant way (ie. is there _anything_ that would expect a directory to be generated and left that way?)


Regards,
Patrick Georgi
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to