pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to perform a conservative package upgrade with pkgsrc?



On Thu, 10 Jul 2014 21:01:52 +0200
Rhialto wrote:

> On Thu 10 Jul 2014 at 15:52:35 +0100, Jonathan Perkin wrote:
> > * On 2014-07-10 at 14:21 BST, Greg Troxel wrote:
> > 
> > > Assuming you aren't going to set up bulk builds (a reasonable
> > > call; it's not trivial)
> > 
> > What can we do to address this?  [...]
> >  pbulk [...]
> 
> There is also pkg_comp, which I found pretty easy to set up. Just
> needs a lot of space.
> 
I second pkg_comp recommendation. Getting prebuilt packages would of
course be easier, but I sometimes use non-default options.
http://wiki.netbsd.org/tutorials/pkgsrc/pkg_comp_pkg_chk/

Updating after I set it up:

$ cd /usr/pkgsrc
$ pkg_chk -g
$ su -
# cd /usr/pkg_comp
# pkg_comp -C ./test.conf chroot
# pkg_chk -ua
# exit
# cd /usr/pkgsrc/
# pkg_chk -ua

(I set it up bit differently from example in wiki, thus you
see /usr/pkg_comp above.)

I still build small additions outside chroot, though pkg_comp can be
used to build single packages too.

As for size:
# du -d 1 -h pkg_comp/                 
505M    pkg_comp/chroot
173M    pkg_comp/sets
677M    pkg_comp/

Above with only relatively few packages installed within chroot, during
build you get all needed packages installed there so I expect it would
grow by about same size as your /usr/pkg/.



Home | Main Index | Thread Index | Old Index