Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Solaris 10, Ubuntu 9.10, Cygwin 1.7.7
Posts: 2
Rep:
How to list all installed software on Solaris 10?
I'm wanting to list ALL installed software on a Solaris 10 system, have tried pkginfo but that just shows what's bundled with Solaris. I saw a suggestion elsewhere regarding viewing the product registry on Solaris -- if anyone knows how to do that or can suggest another approach, please inform!
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Product registry is more of a Windows thing. There is indeed one with Solaris but you'll find there a subset of what pkginfo will report, not a superset.
It is incorrect to tell pkginfo only report Solaris bundled software. It reports all software installed using the Solaris standard SVR4 packaging format. Many freeware and some commercial software comply with it. Unfortunately, not all software comes under this format. When it is just a tarball or similar extracted somewhere, there is no definitive heuristic to identify what is installed and where. That would be the same issue with any OS by the way.
Distribution: Solaris 10, Ubuntu 9.10, Cygwin 1.7.7
Posts: 2
Original Poster
Rep:
Dear jlliagre,
Thank you very much for the clarification re pkginfo output and the use of SunOS/Solaris product registry. IMHO it seems that not having a straightforward way to get a comprehensive list of installed software is a glaring omission in system administration functionality. Folks who inherit administration of systems where a record of installations has not been maintained may find it challenging to identify what's installed.
Any suggestions on how to best approach a comprehensive identification of installed software on a Solaris 10 system will be much appreciated!
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
There is no comprehensive way with any OS I'm aware of. Installing a software might simply be copying a single executable file somewhere in a directory. How would you want the OS to guess this file is a new application that matters and should be recorded and not the side effect of an existing program ? Even the notion of software is fuzzy. It has a meaning in term of packaging but doesn't necessarily has one for the OS.
any solaris package that was installed using the pkgadd will have entries in /var/sadm/pkg and this is shown via pkginfo or pkginfo -l for longer listing. If applications were installed using tar or bin files then more often than not these dont populate the pkg database and therefore do not appear in /var/sadm/pkg.
The only surefire way I can think of is ls /usr/bin followed by ls /usr/sbin and perhaps by ls /opt.
I doubt it's worth the effort, as those commands would list every single little thing, including ls.
In Windows World, inventory programs were created to search for pirate software and license violations, which are not much of an issue in open source, where an insignificant percentage of software is commercially licensed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.