Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2020 10:59:13 -0500
From:      Bob Willcox <bob@immure.com>
To:        Arthur Chance <freebsd@qeng-ho.org>
Cc:        Per Hedeland <per@hedeland.org>, "Steve O'Hara-Smith" <steve@sohara.org>,  freebsd-questions@freebsd.org
Subject:   Re: Updating from 11.3-stable to 12.1-stable?
Message-ID:  <20200428155913.GD39823@rancor.immure.com>
In-Reply-To: <f2e4435b-d6c8-7677-9211-9492d4897eb4@qeng-ho.org>
References:  <20200427200111.GA39823@rancor.immure.com> <9945f3b9-0452-721b-e931-816bc7a044ae@FreeBSD.org> <20200427234150.9bb022df.freebsd@edvax.de> <20200427230003.06a4a2579fc941eae8497388@sohara.org> <3d0844aa-f591-f13e-a471-fcf6b7c40a22@hedeland.org> <20200428151139.GC39823@rancor.immure.com> <f2e4435b-d6c8-7677-9211-9492d4897eb4@qeng-ho.org>

next in thread | previous in thread | raw e-mail | index | archive | help
That explains it then. My system's copy of pkg.conf does contain the leaf alias.

Bob

On Tue, Apr 28, 2020 at 04:17:45PM +0100, Arthur Chance wrote:
> On 28/04/2020 16:11, Bob Willcox wrote:
> > On Tue, Apr 28, 2020 at 04:51:47PM +0200, Per Hedeland wrote:
> >> On 2020-04-28 00:00, Steve O'Hara-Smith wrote:
> >>> On Mon, 27 Apr 2020 23:41:50 +0200
> >>> Polytropon <freebsd@edvax.de> wrote:
> >>>
> >>>> from scratch, add your OS modifications, then install your
> >>>> "top level ports" (the things you're intending to use), and
> >>>> all required dependencies will be resolved automatically as
> >>>> they are needed.
> >>>
> >>> 	Run pkg leaf on the existing system to get a first cut of the list
> >>> of packages to install.
> >>
> >> Hm, that sounds like it could be quite useful for the way I typically
> >> do upgrades, but
> >>
> >> $ pkg leaf
> >> pkg: unknown command: leaf
> >>
> >> For more information on available commands and options see 'pkg help'.
> >> $
> >>
> >> - and I'm afraid I can't spot a likely candidate for a typo in pkg(8).
> >>
> >> Please help!:-)
> > 
> > I can't find any mention of a leaf command in the man page for pkg or its help output,
> > but it does work on my systems.
> > 
> 
> It's an alias defined in /usr/local/etc/pkg.conf. "pkg alias" should
> show the configured aliases. If you've edited pkg.conf at some point
> later updates won't touch it. The alias section of mine reads
> 
> # Sample alias settings
> ALIAS              : {
>   all-depends: query %dn-%dv,
>   annotations: info -A,
>   build-depends: info -qd,
>   cinfo: info -Cx,
>   comment: query -i "%c",
>   csearch: search -Cx,
>   desc: query -i "%e",
>   download: fetch,
>   iinfo: info -ix,
>   isearch: search -ix,
>   prime-list: "query -e '%a = 0' '%n'",
>   prime-origins: "query -e '%a = 0' '%o'",
>   leaf: "query -e '%#r == 0' '%n-%v'",
>   list: info -ql,
>   noauto = "query -e '%a == 0' '%n-%v'",
>   options: query -i "%n - %Ok: %Ov",
>   origin: info -qo,
>   provided-depends: info -qb,
>   rall-depends: rquery %dn-%dv,
>   raw: info -R,
>   rcomment: rquery -i "%c",
>   rdesc: rquery -i "%e",
>   required-depends: info -qr,
>   roptions: rquery -i "%n - %Ok: %Ov",
>   shared-depends: info -qB,
>   show: info -f -k,
>   size: info -sq,
>   }
> 
> 
> -- 
> Fat Earther: One who believes the world is round but has put on too
> much weight round the middle.

-- 
Bob Willcox    | It's possible that the whole purpose of your life is to
bob@immure.com | serve as a warning to others.
Austin, TX     |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200428155913.GD39823>