Administration Oracle Solaris 11 IPS – Repositories

 Automatisation, Solaris  Kommentare deaktiviert für Administration Oracle Solaris 11 IPS – Repositories
Feb 232015
 

Welche Publisher sind am System bekannt ?

# pkg publisher

 

Refresh lokaler IPS Repository-Cache:

# pkg refresh --full

 

Rebuild IPS Repository:

# pkgrepo rebuild -p <repo-name> -s <repo-path>

 

Rebuild Index IPS Repository:

# pkg rebuild-index

 

Informationen IPS Repository:

# pkgrepo info -s /install/s11u1/repo/ 
PUBLISHER PACKAGES STATUS UPDATED 
solaris 4457 online 2013-06-17T17:56:25.779496Z

 

Löschen einzelner Pakete im IPS Repository „custom“:

# pkg list -afv app1 
FMRI IFO 
pkg://custom/app1@1.0,5.11-0.0.0:20130628T161448Z --- 

# pkgrepo remove -s /install/custom/repo pkg://custom/app1@1.0,5.11-0.0.0:20130628T161448Z 
Removing packages for publisher custom ... 
PHASE ITEMS 
Deleting search index Done 
… 
Removing package files 1/1 

# pkg refresh custom 

# pkg list -afv app1 

pkg list: no packages matching 'app1' known 

 

Auflistung IPS Repository Inhalt:

# pkgrepo list -s /install/s11u1/repo/ 
PUBLISHER NAME O VERSION 
solaris BRCMbnx r 0.5.11,5.11-0.133:20101027T183107Z 
solaris BRCMbnxe r 0.5.11,5.11-0.133:20101027T183108Z 
solaris CPQary3 r 0.5.11,5.11-0.133:20101027T183108Z 
…

 

Verifizierung IPS Repository:

# pkgrepo verify -s /install/s11u1/repo/

 

Detailinformatonen IPS Repository:

# pkgrepo get -s /install/s11u1/repo 
SECTION PROPERTY VALUE 
publisher prefix solaris 
repository check-certificate-revocation False 
repository description This\ repository\ serves\ a\ copy\ of\ the\ Oracle\ Solaris\ 11.1\ Build\ 24b\ Package\ Repository. 
repository name Oracle\ Solaris\ 11.1\ Build\ 24b\ Package\ Repository 
repository signature-required-names () 
repository trust-anchor-directory /etc/certs/CA/ 
repository version 4 solaris 4457 online 

 

History IPS Repository

  • Exemplarisch: Repository „custom“
# pkg history custom 
START OPERATION CLIENT OUTCOME 
2011-08-29T16:47:13 set-property transfer module Succeeded 
2011-08-29T16:47:13 add-publisher transfer module Succeeded 
2011-08-29T16:47:13 refresh-publishers transfer module Succeeded 
2011-08-29T16:47:13 image-create transfer module Succeeded 
2011-08-29T16:47:24 rebuild-image-catalogs transfer module Succeeded 
…

 

Export eines ausgewählten IPS-Pakets als PAX-Archiv:

# pkg list -afv first-boot 
FMRI IFO 
pkg://custom/first-boot@1.4,5.11:20121109T143348Z --- 
pkg://custom/first-boot@1.4,5.11:20121102T094319Z --- 
…

# pkgrecv -s /install/custom/repo -a -d ./first-boot.p5p pkg://custom/first boot@1.4,5.11:20121109T143348Z 

# pax –vf ./first-boot.p5p

 

Import eines PAX-Archiv in Repository:

# pkgrecv -d /install/custom/repo -s ./first-boot.p5p pkg://custom/first boot@1.4,5.11:20121109T143348Z
 Posted by at 11:28 am