solaris pkg publisher from scratch

Exercise : Using the oracle publisher

# pkgrepo create /export/repoSolaris11
# pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 '*'

when interrupted look in var tmp for the file that holds state
# pkgrecv -c /var/tmp/pkgrecv-fOGaIg \
-s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 '*'

Using an iso file
# cat sol-11-1111-repo-full.iso-a sol-11-1111-repo-full.iso-b > \
sol-11-1111-repo-full.iso

# ls /export/repoSolaris11
sol-11-1111-repo-full.iso

# mount -F hsfs /export/repoSolaris11/sol-11-1111-repo-full.iso /mnt
# ls /mnt
COPYRIGHT NOTICES README repo

# df -k /mnt
Filesystem 1024-blocks Used Available Capacity Mounted on
/export/repoSolaris11/sol-11-1111-repo-full.iso 6778178 6778178 0 100% /mnt

# rsync -aP /mnt/repo/ /export/repoSolaris11

# cd /mnt/repo; tar cf - . | (cd /export/repoSolaris11; tar xfp -)
# cd /export/repoSolaris11

# pkgrepo -s /export/repoSolaris11 refresh
Initiating repository refresh.

---

serve your repository from the network using nfs

# zfs create -o mountpoint=/export/repoSolaris11 rpool/repoSolaris11
# zfs set share=name=s11repo,path=/export/repoSolaris11,prot=nfs rpool/repoSolaris11
name=s11repo,path=/export/repoSolaris11,prot=nfs

# zfs set sharenfs=on rpool/repoSolaris11

# grep repo /etc/dfs/sharetab
/export/repoSolaris11 s11repo nfs sec=sys,rw

# dfshares solaris
RESOURCE SERVER ACCESS TRANSPORT
solaris:/export/repoSolaris11 solaris - -

# pkg set-publisher -G '*' -M '*' -g /net/host1/export/repoSolaris11/ solaris

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.