Tuesday, December 1, 2009

How to remove package from Solaris machine

1. Go to this directory on solaris machine

cd /var/sadm/pkg

2. find the package to be removed forcefully

do the

rm -rf pkg_name

Here is the small script which will remove pkg_name* packages from system in one shot:

# for pkg in `pkginfo | grep -i pkg_name| awk '{print $2}'`;do rm -rf /var/sadm/pkg/$pkg; done

0 comments:

Post a Comment