Have did below step for offline local repository .
1.
# pkgrepo create /Repository/RepoSolaris11/
2.
# pkgrecv -s https//pkg.oracle.com/solaris/support/ -d /Repository/RepoSolaris11 --key <path>/pkg.oracle.com.key.pem --cert <path>/pkg.oracle.com.certificate.pem -m all-timestamps '*'
# pkgrepo rebuild -s /Repository/RepoSolaris11/
#
3. Have set the http access and am able to view all version packages using web url
# pkg set-publisher -G '*' -M '*' -g http://myhostname/S11MainRepo solaris
4.Can see all packages
# pkgrepo list -H -shttp://myhostname/S11MainRepo
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://myhostname/S11MainRepo
But,
1. When I try to install any package am getting below error .
Errors were encountered while attempting to retrieve package or file data for
the requested operation.
Details follow:
http protocol error: code: 404 reason: Not Found
URL: 'http://myhostname/S11MainRepo/solaris/manifest/0/library%2Fpython%2Fpygobject-27@2.21.3%2C5.11-0.175.3.0.0.26.0%3A20150705T203156Z' (happened 4 times)
Please assist what am doing wrong here .
Also,
1. Is there any way to delete previous versions from repository, as have selected all-timestamps
2. Can pkgrecv only some specific versions .