I can download solaris 11 repository by using pkgrecv command. This command will download manifests and payload.
eg: pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /tmp/cde -m all-versions -r /cde/locale
This command will download manifest and payload for all versions of package '/cde/locale' at location /tmp/cde
Once download command is successful my repository at /tmp/cde/publisher/solaris
will look like following -
# ls /tmp/cde/publisher/solaris
catalog file pkg tmp trans
- 'file' will contain actual payload
- 'catalog' and 'pkg' contains manifests
What I want is a way to download only manifest files (that is 'catalog' and 'pkg') for the repository. I could not find a way to do that.
Manifest files are compared by pkg command, against solaris 11 server, to find missing or updated version of packages. I would like to download payload only if pkg command tells me that a particular package is missing.