On 2025-05-23 13:22, Tomoaki AOKI wrote:
On Fri, 23 May 2025 18:43:01 +0200
Piotr Smyrak <[email protected]> wrote:

On Fri, 23 May 2025 09:21:56 -0700
"Dan Mahoney (Ports)" <[email protected]> wrote:

> > On May 23, 2025, at 05:00, Piotr Smyrak <[email protected]> wrote:
> >
> > On Fri, 23 May 2025 04:25:45 -0700
> > "Dan Mahoney (Ports)" <[email protected]> wrote:
> >
> >> pkg has a feature, pkg updating, which basically requires you to
> >> have a checked out ports tree.
> >>
> >> Are there any plans to make this function possible without having a
> >> ports tree checked out, by baking the “UPDATING” data into the repo
> >> file somehow?
> >
> > Do you mean something like fetchupdating similarly to fetchindex
> > target? Or even more standalone?
>
> My copy of pkg doesn’t seem to know what to do if I type pkg
> fetchindex.
>
> I think a good thing would be to bring it into parity with pkg-audit,
> which also depends on a file that’s not normally part of the pkg
> repo, but which has an inbuilt command to fetch it.

I am used to think in ports terms rather than pkg, and such was also my
answer.

make fetchindex – executed within the ports tree downloads a newest copy
of ports INDEX from project servers.

So the URL mentioned by Tomoaki-san and the oneliner posted later by
me, would give you a solution you were looking for.

--
 Piotr Smyrak

`make fetchindes` on /usr/ports (unless you moved it to somewhere else)
instead of `pkg fetchindex` should work. But fetched INDEX* could NOT
match the tree as regenerating it takes time. But unlike pkgs in
official repo, previous INDEX* are not deleted until next one finishes.

If you have ports-mgmt/portupgrade[-devel] installed, `portsdb -F`
does the same thing and `portsdb -Fu` updates portupgrade specific
database using just fetched INDEX*.

Note that INDEX* (INDEX-14 for 14.*) is a "text database" to show
what's going to be built for official pkgs and their relationships,
and UPDATING is a "document for admins" to instruct how to update
their ports/pkgs installed that needs special cares. So they are
completely different files.
Will `pkg updating` get it for you?
pkg updating: Display UPDATING entries of installed packages.

HTH

-- Chris
--
Sent from hardware running on and written from FreeBSD.

Attachment: 0xE512722F.asc
Description: application/pgp-keys

Reply via email to