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 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..
|
|
|
|






My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about
{ 1 comment… read it below or add one }
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!