pkgng - Package manager for FreeBSD >= 9.0

Author:bleader

Synopsis

New in version 1.2.

Manage binary packages for FreeBSD using ‘pkgng’ which is available in versions after 9.0.

Options

parameter required default choices comments
annotation no
    a comma-separated list of keyvalue-pairs of the form <+/-/:><key>[=<value>]. A '+' denotes adding an annotation, a '-' denotes removing an annotation, and ':' denotes modifying an annotation. If setting or modifying annotations, a value must be provided. (added in Ansible 1.6)
    cached no
    • yes
    • no
    use local package base or try to fetch an updated one
    name yes
      name of package to install/remove
      pkgsite no
        for pkgng versions before 1.1.4, specify packagesite to use for downloading packages, if not specified, use settings from /usr/local/etc/pkg.conf for newer pkgng versions, specify a the name of a repository configured in /usr/local/etc/pkg/repos
        state no present
        • present
        • absent
        state of the package

        Examples


        # Install package foo
        - pkgng: name=foo state=present
        
        # Annotate package foo and bar
        - pkgng: name=foo,bar annotation=+test1=baz,-test2,:test3=foobar
        
        # Remove packages foo and bar
        - pkgng: name=foo,bar state=absent
        

        Note

        When using pkgsite, be careful that already in cache packages won’t be downloaded again.

        Table Of Contents

        Previous topic

        pkgin - Package manager for SmartOS

        Next topic

        pkgutil - Manage CSW-Packages on Solaris