view docs/man/man8/fpkg.rst @ 723:a97ec3f07bdb

farray.sh: REFACTOR: More flexible metadata retrieval. Using an array or alist variable name or token value (with prefix) is now supported in every function. This is possible because the value prefixes contain questin marks (?) which are not allowed in shell variable names. This again is a major precondition for recursive data structures (arrays/alists in arrays/alists).
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 05 Oct 2024 21:55:55 +0200
parents 5931f16f098f
children
line wrap: on
line source

.. -*- coding: utf-8; indent-tabs-mode: nil; -*-

fpkg
====

Synopsis
--------

**fpkg -hV**

**fpkg subcommand**


Description
-----------

A :manpage:`pkg(8)` frontend for common operations that also operates
in all running and compatible jails.

A "compatible jail" is a jail where the output of
:command:`freebsd-version -u` is the same as the host's; the patchlevel
is not relevant -- ``<major>.<minor>`` is compared.

The following global options are implemented:

.. program:: fpkg

.. option:: -h

   Print a short usage message to stdout and exit.

.. option:: -V

   Print the program name and version number to stdout and exit.


Subcommands
-----------

:manpage:`fpkg-audit(8)`

    Call :command:`pkg audit` for the local host and for all running
    visible and compatible jails.

:manpage:`fpkg-check-fast-track(8)`

    Check packages installed from the LocalBSDPorts repository against
    the repositories `FreeBSD` and `LocalBSDPorts` on the local host
    and all visible and compatible jails

:manpage:`fpkg-check-upgrade(8)`

    Call :command:`pkg upgrade -n` for the local host and for all running
    visible and compatible jails.

:manpage:`fpkg-config(8)`

    Retrieve the value of a given :manpage:`pkg(8)` configuration
    option for the local host and all running visible and
    compatible jails (:command:`pkg config`).

:manpage:`fpkg-etcupdate-status(8)`

    Call :command:`etcupdate status` for the local host and all running
    visible jails.

:manpage:`fpkg-update(8)`

    Call :command:`pkg update` on the local host and all running
    visible and compatible jails.

:manpage:`fpkg-upgrade(8)`

    Call :command:`pkg upgrade` for the local host and all running
    visible and compatible jails.

:manpage:`fpkg-uversion(8)`

    Call :command:`freebsd-version -u` for the local host and for all
    running visible jails.

:manpage:`fpkg-vv(8)`

    Call :command:`pkg -vv` for the local host and all running visible
    jails.


Environment
-----------

.. envvar:: FPKG_AUDIT_FLAGS

   Additional flags given to :command:`pkg audit` (Default: ``-Fr``).

.. envvar:: FPKG_UPDATE_FLAGS

   Additional flags given to :command:`pkg update` (Default: empty).

.. envvar:: FPKG_UPGRADE_FLAGS

   Additional flags given to :command:`pkg upgrade` and
   :command:`pkg upgrade -n` (Default: empty).

.. envvar:: FPKG_SIGN

   Marker for the begin of an output group (local host or jail)
   (Default: "===> ").

.. envvar:: FPKG_SKIPSIGN

   Marker for the begin of a skipped output group (Default: "----> ").

.. envvar:: FREEBSD_REPO

   The name of the (official) FreeBSD package repository (Default:
   ``FreeBSD``).

.. envvar:: LOCALBSDPORTS_REPO

   Repository with ports with default port OPTIONS (i.e. unchanged)
   but with newer package versions as the "FreeBSD" repository. Some sort
   of fast-track repository.

All other environment variables that affect :manpage:`pkg(8)` are
effective also.


Files
-----

If there is a :file:`/usr/local/etc/local-bsdtools/pkgtools.conf` then
this file is sourced in. All environment variables that are documented
in `Environment`_ can be set in this file also.

This configuration file is a Bourne shell (:command:`/bin/sh`)
compatible file.


See Also
--------

:manpage:`check-ports(8)`