Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Application Packaging Developer's Guide
Previous Next

Removing a Package

Because the pkgrm command updates information in the software products database, it is important when you remove a package to use the pkgrm command—even though you might be tempted to use the rm command instead. For example, you could use the rm command to remove a binary executable file, but that is not the same as using pkgrm to remove the software package that includes that binary executable. Using the rm command to remove a package's files will corrupt the software products database. (If you really only want to remove one file, you can use the removef command, which will update the software product database correctly.

How to Remove a Package

  1. Log in to the system as superuser.
  2. Remove an installed package.
    # pkgrm pkg-abbrev ...

    pkg-abbrev

    Is the name of one or more packages (separated by spaces). If omitted, pkgrm removes all available packages.

  3. Verify that the package has successfully been removed, use the pkginfo command.
    $ pkginfo | egrep pkg-abbrev

    If pkg-abbrev is installed, the pkginfo command returns a line of information about it. Otherwise, pkginfo returns the system prompt.

Previous Next

 
 
  Published under the terms fo the Public Documentation License Version 1.01. Design by Interspire