Sun Solaris: How to Install or Remove Sparc Packages Using pkgadd and pkgrm

by Sasikala on June 18, 2010

Question: I would like to know how to install, uninstall, verify sparc packages on Sun Solaris. Can you explain me with an example?

Answer: Use pkgadd to install a sparc package. Use pkgrm to remove a sparc package as explained below.

Packages on Solaris allow easy installation and extraction of software. All the parts of a package are maintained in a table of contents. The package tools allow you to install and remove software easily without having to worry about “ghost files” left on the system or mis-configured or partly installed software.

Installing a sparc using pkgadd

Example to install the pacakge Afio sparc package,

$ pkgadd -d  /root/afio-2.5-sol10-sparc

The following packages are available:
  1  SMCafio     afio
                 (sparc) 2.5

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <SMCafio> from </root/afio-2.5-sol10-sparc-local>

afio
(sparc) 2.5
Koen Holtman
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
   4 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for setuid/setgid programs.

Installing afio as <SMCafio>

Installation of <SMCafio> was successful.

You can verify your installation using pkginfo command, as shown below.

$ pkginfo SMCafio
application SMCafio                          afio

Uninstalling a sparc using pkgrm

pkgrm command removes the package completely.

$ pkgrm SMCafio

The following package is currently installed:
   SMCafio         afio
                   (sparc) 2.5

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SMCafio>
## Processing package information.
## Removing pathnames in class <none>
Removal of <SMCafio> was successful.

Linux Sysadmin Course Linux provides several powerful administrative tools and utilities which will help you to manage your systems effectively. If you don’t know what these tools are and how to use them, you could be spending lot of time trying to perform even the basic administrative tasks. The focus of this course is to help you understand system administration tools, which will help you to become an effective Linux system administrator.
Get the Linux Sysadmin Course Now!

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

{ 1 comment… read it below or add one }

1 Mary April 11, 2013 at 11:15 am

Thanks. it has been forever and I do mean forever since I’ve done any package management. This came in handy. Gawd I love search engines!

Leave a Comment

Previous post:

Next post: