Create list of ports to update

Ben Woods woodsb02 at gmail.com
Sun Dec 3 19:30:46 UTC 2017


On Mon, 4 Dec 2017 at 7:04 am, andrew clarke <mail at ozzmosis.com> wrote:

> On Sun 2017-12-03 17:35:15 UTC+0000, Carmel NY (carmel_ny at outlook.com)
> wrote:
>
> > It would seem to me that poudriere would provide some native method of
> > resolving that question. Other port management utilities like synth do
> it.
>
> The philosophy behind Poudriere is that it sandboxes everything within
> jails
> and so is not at all interested in what's installed on the jail host, so I
> can understand why that feature isn't built in.


This is exactly on point.

Poudriere is a package building system, and the packages may be used on
this host, or as a repository for other hosts... so what is installed on
the current host is irrelevant.

That said, if you are only using one host, then the following will work
great.
pkg query %o > /usr/local/etc/poudriere-list
poudriere -v bulk -j 11amd64 -f /usr/local/etc/poudriere-list

Note that I don’t store it in /tmp/ as you will want to keep the file
around for next build. Each time you want a new package, add it to the file
first, and rebuild.

Note the first time poudriere will build all packages, regardless of
whether they are up to date on the host already. In poudriere’s package
repo, they don’t exist yet. The second time and after, poudriere will only
build the ports which are out-dated or who’s dependencies were updated.

Regards,
Ben

-- 

--
From: Benjamin Woods
woodsb02 at gmail.com


More information about the freebsd-questions mailing list