Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created August 30, 2012 18:23
Show Gist options
  • Save dnaeon/3536548 to your computer and use it in GitHub Desktop.
Save dnaeon/3536548 to your computer and use it in GitHub Desktop.
pkg-plugins
### Display installed plugins
% pkg plugins
NAME DESC VERSION LOADED
stats Plugin for displaying package stats 1.0 YES
template Template plugin for pkgng 1.0 NO
zfssnap ZFS snapshot plugin for pkgng 1.0 YES
### Installing a package with plugins loaded
% sudo pkg install bash
Updating repository catalogue
Repository catalogue is up-to-date, no need to fetch fresh copy
The following packages will be installed:
Installing bash: 4.2.28
The installation will require 4 MB more space
0 B to be downloaded
Proceed with installing packages [y/N]: y
>>> Triggering execution of plugin 'zfssnap'
>>> Creating ZFS snapshot
>>> Triggering execution of plugin 'stats'
>>> Installed packages : 149 | Disk space: 625 MB <<<
Checking integrity... done
Installing bash-4.2.28... done
>>> Triggering execution of plugin 'stats'
>>> Installed packages : 150 | Disk space: 629 MB <<<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment