Remove a Solaris package with pkgrm

Contributor Icon Contributed by qmchenry  
Tag Icon Tagged: Solaris system administration  

Most software provided for a Solaris system comes in a package. Removing an installed package is easy, but any command associated with “removing” is worth paying attention to.


To remove the installed package SUNWtchrx from a system, run this command as root:

pkgrm SUNWtchrx

You may be asked for confirmation before proceeding. Once benefit of using packages is that Solaris keeps up with what files are shared by packages. Removing a package consisting of files shared among other installed packages will not remove the shared files.

 

4 Comments -


  1. vijay said on February 3, 2009

    can u tell me how to add packages

  2. Brian said on March 11, 2009

    Thanks for the reference. I never can remember.

  3. Brian said on March 11, 2009

    I’m with you. To add a Solaris package simply use the following command for example:

    pkgadd -d package.name

  4. Christian said on October 14, 2010

    What about if I want to force removal in spite of files shared by other packages?

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -