k3ri

You've got a lot of choices. If getting out of bed in the morning is a chore and you're not smiling on a regular basis, try another choice.

Buy Handmade @ Etsy

March 10, 2009

You selected workstation instead of server?

Text

So, running into this problem where our remote hands installed a server with media instead of jumpstart. (Solaris 10, u5) Of course, this installed all sorts of extra packages that aren’t needed, and require patching to keep the server secure.

Assuming that you have a machine that’s quite similar and the same release, you’ll want to do the following on each machine:

pkginfo |awk ‘{print $2}’ > jumpstarted-machine

pkginfo |awk ‘{print $2}’ > crappy-machine

Then, compare the two and make your list:

cat jumpstarted-machine crappy-machine | sort | uniq -u > uniques

cat crappy-machine uniques | sort | uniq -d > remove-these

Finally, get to removing:

yes | pkgrm `cat remove-these`

(do I really need to add the whole “Make SURE to check the list” warning here?)