Tuesday, August 09, 2005

Solaris 10 Note

If you've screwed up your Solaris 10 setup by removing SUNWwbsup and you can't use pkgrm/pkgadd/etc. anymore, try this:

From disk 1, copy Solaris_10\Product\SUNWwbsup\Archive\none.bz2 to a temp directory
bunzip2 none.bz2
mv none.bz2.out none.cpio (ah hah!, file IS useful...)
cd /
cat /tmp/none/bz2.out | cpio -i -d

Then you can now run pkgadd and friends. The exercise is left to the reader on how to convince pkginfo and friends that said package has actually been installed again (I'd love to know, but don't care).

I messed up all of my zones today because I removed all unnecessary packages (and, it seems, at least one necessary one...) I've heard tell that this website has some good ideas on what's safe to remove or not.

No comments: