How to create An Oracle Solaris 11 IPS/PKG Nagios Plugins Package The example below creates a Solaris Nagios Plugins package, I then show you how to publishes the Nagios pkg to your repository. Download required software First, download the latest NRPE and Nagios-plugins, you can download the Nagios plugins from here and the latest NRPE […]
Tag: pkg
Fix / Workaround For Solaris SMF pkg/repositories-setup Maintenance Due To Proxy Issue
The workaround below should fix the issue with the SMF Repositories-Setup going into maintenance. Below is a workaround I used to address/fix the issue with the svc:/application/pkg/system-repository:default going in to maintenance. So I am to trying to install a zone on a fresh Solaris 11.4 server, by running the below.
1 2 3 4 5 6 7 8 9 10 |
zoneadm -z z1 install The following ZFS file system(s) have been created: rpool/VARSHARE.zones/z1 Progress being logged to /var/log/zones/zoneadm.20180917T163026Z.z1.install Image: Preparing at /system/zones/z1/root. Error Unable to enable svc:/application/pkg/system-repository:default, please enable the service manually. zoneadm: zone 'z1': ERROR:installation failed: zone switching to configured state The following ZFS file systems are being removed: /system/zones/z1/root. |
Note: The Solaris server […]
How to create a Solaris IPS PKG
The below example creates a Solaris pkg from the Nagios application, you can then publishes the pkg to a Solaris repository. Note: To see how-to publish this pkg to a Solaris repository click here Extract legacy pkg to temp directory
1 2 3 |
mkdir nrpe-pkg-source nagios-plugins-pkg-source pkgtrans nagios-plugins-1.4.16-sol10-i386-local nagios-plugins-pkg-source pkgtrans nrpe-2.14-sol10-i386-local nrpe-pkg-source |
Create a directory with all files being used for example nagios. Then under this […]
Updating Solaris 11 zones behind a proxy
I’ve forgotten this several times now so it’s time I wrote a short post to help me remember in future! In Solaris 11 we use the Image Packaging System to maintain the software on the system. This is written in python and uses libcurl and for non zoned systems setting the http_proxy is sufficient to […]
How to add a p5p pkg to a Solaris 11 repo
First you add the IDR/p5p file to the repo Note: To see how-to create a Solaris pkg click here
1 2 3 4 5 |
pkgrecv -d /var/mnt/virtlibs/1362593673064/1495c928-9096-4e11-9958-25856df9b57f/data -s /tmp/idr793.1.p5p "*" Processing packages for publisher solaris ... Retrieving and evaluating 2 package(s)... PROCESS ITEMS GET (MB) SEND (MB) Completed 2/2 48.1/48.1 103.9/103.9 |
Then you refresh the repo
1 2 |
pkgrepo refresh -s /var/mnt/virtlibs/1362593673064/1495c928-9096-4e11-9958-25856df9b57f/data Initiating repository refresh. |
How To Install an IDR Pkg Using a p5p in Solaris 11
Installing / applying an IDR Pkg(patch) Using a .p5p in Solaris 11.x First we need to get the list of packages included in the p5p
1 2 3 |
pkg list -g file:////var/tmp/idr793.1.p5p NAME (PUBLISHER) VERSION IFO idr793 1 --- |
Then install the patch / package
1 |
pkg install -g file:////var/tmp/idr793.1.p5p idr793 |
If the above steps is not working, then you might need to unset the soalris publisher and set the p5p s as […]
How to setup a Soalris 11 Package Repository
Contents 1 How to create a local soalris 11 express Package Repository 1.1 Create a new ZFS file system within a pool 1.1.1 Zfs Pool 1.1.2 ZFS filesystem 1.2 Prepare CD images from Oracle 1.3 Mount the repo CD image 1.4 Copy the data to the repo location 1.5 Set new repository settings 1.6 Enable […]