find out dependent Solaris 10 x86 packages in advance

sunhux
sunhux used Ask the Experts™
on
in RHEL, I can find out the dependent packages in advance by
   rpm -q --whatrequires package_name  or
   yum dep_list package_name
before actual day of doing "rpm -ivh ./package_name", then
only found out what's the missed dep pkgs & having to start
downloading them on the day of installation.

For Solaris 10 x86  packages, what's the equiv commands/steps
to find out the dependent packages in advance?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017
Commented:
Previously a test pkgadd will tell you if there are missing dependencies. Not sure if pkginfo would list the info, though the depend within the package ...

How current is your patch level?
pkgdep was added ref: https://lildude.co.uk/solaris-package-dependency-tool-now-available

Author

Commented:
Our Solaris 10  patch-level is before 119255-85  :
so I have to apply at least this patch (or later) to be able to use pkgdep ?
Distinguished Expert 2017
Commented:
yes.

try using the pkginfo -l <package name> see whether it includes a dependency list

pkginfo is a way to see.
The other option is to convert the data streem package to expanded one so that you can navigate the directory structure and see the depend/script ..
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Commented:
In Solaris, each package or patch comes with a Readme file, that file will list all the dependency.

Author

Commented:
how do we extract that readme file from the pkg file?
Commented:
The readme file should be separated from the pkg file.
Commented:
This was an example of Readme file looks like:

https://updates.oracle.com/readme/10_sparc_0910_patchbundle
Distinguished Expert 2017
Commented:
You would need to use pkgtrans to convert the package (expand to a folder )

https://unix.stackexchange.com/questions/61843/solaris-10-pkgtrans-command


Be gore going this route, look whether pkginfo in various modes includes the info.
Hi,

For Solaris you can also look at the contents of the particular depend file i.e.:

cat /var/sadm/pkg/package_name/install/depend

Open in new window


Cheers

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial