Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


pkgutil (7) Versions 2.1.0

Manages Solaris pkgutil packages

cookbook 'pkgutil', '= 2.1.0'
cookbook 'pkgutil', '= 2.1.0', :supermarket
knife supermarket install pkgutil
knife supermarket download pkgutil
Quality 100%

pkgutil Cookbook

Build Status Cookbook Version


  • Chef 12.1+



Configures the local the local pkgutil installation to point at the Open Community Software Project (OpenCSW) package repository. The optional cryptographic verification will also be enabled for the repository.



This cookbook provides a package provider which will install/remove packages using pkgutil. This becomes the default provider for package if your platform is solaris2.


package 'vim' do
  action :install

package 'vim' do
  provider Chef::Provider::Package::Pkgutil


This resource provides an easy way to manage pkgutil repositories. Default action is :add which enables the repository. Use :remove to disable a repository.

The pkgutil_repository resource has the following attributes:

Attribute Description
mirror mirror to use for downloads (defaults to
channel also called 'directories', see for more
verification verify the catalog and each package using PGP
gpg_homedir path to the gpg directory (defaults to /var/opt/csw/pki)
pkgadd_options additional options to use for underlying pkgadd commands
allow_noncsw support non-CSW packages

This resource will also ensure pkgutil and any required public keys are installed!


You can run the tests in this cookbook using Rake:

rake integration              # Run Test Kitchen integration tests
rake spec                     # Run ChefSpec examples
rake style                    # Run all style checks
rake style:chef               # Lint Chef cookbooks
rake style:ruby               # Run Ruby style checks
rake style:ruby:auto_correct  # Auto-correct RuboCop offenses
rake travis:ci                # Run tests on Travis

License & Authors

Copyright 2012-2014, Chef Software, Inc. (<>)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

pkgutil Cookbook CHANGELOG

This file is used to list changes made in each version of the pkgutil cookbook.

2.1.0 (2017-01-18)

  • Fix - handle "+" in package name
  • Update Github PR template

2.0.0 (2016-09-16)

  • Enable use_inline_resources
  • Testing framework updates
  • Format readme and remove release engineering blurb
  • Require Chef 12.1

v1.0.0 (2016-04-27)

  • Converted the pkgutil_package into a true package provider that runs as the default on Solaris systems
  • Added Chefspec tests
  • Added Test Kitchen testing
  • Add rubocop config and resolved warnings
  • Added Gemfile with test deps
  • Fixed Readme badges
  • Added a chefignore file
  • Added testing and contributing docs
  • Added this changelog
  • Added license file and license information in the readme
  • Added name to the metadata
  • Added source_url and issues_url to the metadata
  • Added maintainers files and rake task to generate the markdown
  • Fixed typos in the readme
  • Added a .foodcritic file to disable FC048 and FC001
  • Updated Travis CI config to test with Chef DK

Collaborator Number Metric

2.1.0 passed this metric

Contributing File Metric

2.1.0 passed this metric

Foodcritic Metric

2.1.0 passed this metric

License Metric

2.1.0 passed this metric

No Binaries Metric

2.1.0 passed this metric

Publish Metric

2.1.0 passed this metric

Supported Platforms Metric

2.1.0 passed this metric

Testing File Metric

2.1.0 passed this metric

Version Tag Metric

2.1.0 passed this metric