TWiki
>
DICE Web
>
MPUSolarisPackageFolklore
(24 Jan 2007,
ChrisCooke
)
(raw view)
E
dit
A
ttach
<!-- This is a comment, in the HTML sense of the word, but Wiki directives still work, so you could put access control statements here to restrict access to your new topic, and they won't show up in the published page. Please think carefully when creating a new topic, and use a GoodWikiName --> ---+!! Solaris Packages (Please add to this page!) %TOC% ---++ Getting Package Information Some commands to help you get package information on Solaris. These are rough equivalents of the *rpm* commands that I use every day on Linux. | *Linux* | *Purpose* | *Solaris* | *Notes * | | rpm -qa | List all the packages | pkginfo | | | rpm -qa | grep _whatever_ | List all the _whatever_ packages | pkginfo | grep _whatever_ | | | rpm -q _foo_ | Get the version number of an installed package | pkginfo -x _foo_ | | | rpm -qi _foo_ | Get info about an installed package | pkginfo -l _foo_ | | | rpm -ql _foo_ | List files in an installed package | pkgchk -v _foo_ | | | rpm -qf _/usr/bin/foo_ | Which package is this file in? | pkgchk -lp _/usr/bin/foo_ | However it doesn't complain if a file <br> is in two or more clashing packages! | | rpm -i _/path/to/foo_ <br> rpm -U _/path/to/foo_ | Install a package by hand | pkgadd -d _/path/to/foo_ | | ---++ Packages, Clusters and Metaclusters Note that Solaris packages are not quite equivalent to RPMs as Solaris also has the concepts of _clusters_ and _metaclusters_. A cluster is a bundle of packages. A metacluster is a bundle of clusters and packages. Clusters and metaclusters are defined (by Sun) in =/var/sadm/system/admin/.clustertoc=. A word of warning: clusters can come and go, and their contents can change, even if the OS version stays the same (when a patch is applied? when software is installed? when hardware differs?). Furthermore, _even if a cluster's list of constituent packages is changed, the cluster's version number may stay the same as it was before the change_. ---++ Solaris Package Companion This should be worth a look when we think about improving updaterpms/updatepkgs: http://www.opensolaris.org/os/project/svr4_packaging/package_companion/ <em> The Solaris Package Companion is a small Korn shell script that allows you to ask quite a number of interesting questions about the relationships between Solaris metaclusters, clusters and packages as well as their respective dependencies. Very often, answers to these kinds of questions are essential for the construction of minimized systems as well as more generally for OS golden images. The goal of the Solaris Package Companion, or SPC for short, is to do all of the hard work so you don't have to. SPC will create a small cache by mining information from the various packaging files and directories to allow you to quickly and easily obtain answers to a variety of questions such as: * What clusters or packages are contained in a given metacluster? * What packages are contained in a given cluster? * What metacluster or cluster contains a given package? * On what other packages does a given package or cluster depend? * Which packages depend on a given package? * … and so on… </em> -- Main.ChrisCooke - 23 Jan 2007
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r5 - 24 Jan 2007 - 11:16:49 -
ChrisCooke
DICE.MPUSolarisPackageFolklore moved from DICE.MPUSolarisPackageCommands on 17 Jan 2007 - 12:13 by
ChrisCooke
-
put it back
DICE
DICE Web
DICE Wiki Home
Changes
Index
Search
Meetings
CEG
Operational
Computing Projects
Technical Discussion
Units
Infrastructure
Managed Platform
Research & Teaching
Services
User Support
Other
Service Catalogue
Platform upgrades
Procurement
Historical interest
Emergencies
Critical shutdown
Where's my software?
Pandemic planning
This is
WebLeftBar
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
This Wiki uses
Cookies