Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2020 01:50:52 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Yuet-nan Wong <yuetnanwong128@yahoo.com>, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: package +MANIFEST file - look inside
Message-ID:  <79716c76-408e-42a9-0e35-d8fb9e0feb7e@quip.cz>
In-Reply-To: <160165382.1065705.1581379482389@mail.yahoo.com>
References:  <160165382.1065705.1581379482389.ref@mail.yahoo.com> <160165382.1065705.1581379482389@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Yuet-nan Wong via freebsd-ports wrote on 2020/02/11 01:04:
> Is there a command, or short script that enables the +MANIFEST to be examined.  There are cases where we want to review what the scripts section of the +MANIFEST contains.  In particular the post-install script.
> 
> What we're trying to achieve is something like
> pkg view scripts post-install -f $OUTPUT
> so we can modify or run it at a better time, like first boot.

If you want to modify or run in in a better time then you probably need 
to know it before running pkg install / pkg upgrade command. Then you 
probably need to fetch a package alone (pkg upgrade with -f or 
--fetch-only) and then you can unpack +MANIFEST from it and use some 
JSON / YAML tool to examine content (e.g. textproc/jq). After that you 
can run pkg upgrade (or pkg install) again with -I or --no-install-scripts.

> As a follow-on from this, we would like to use the "files" list to set the MAC mls/ settings as a post-install task, so getting the first, filename element (of filename:signature,) from the "files" list is important.
> Thank-you.

You can get the list of the installed files by "pkg info -l pkgname" or 
"pkg query '%Fp' pkgname"

Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79716c76-408e-42a9-0e35-d8fb9e0feb7e>