On Tue, Feb 14, 2012 at 11:50:31AM -0600, Chris Bennett wrote:
> On Tue, Feb 14, 2012 at 07:06:26PM +1030, Giridhari wrote:
> > HELO,
> >
> > whatbs the correct procedure for keeping ports that are installed up to
> date
> > when the system is updated with CVS?
> >
> > Do I need to make uninstall the ports, perform the cvs update, build the
> new
> > system and then make the new ports?
>
> If you are running -current or if you update to a newer release AND are
> running ports that are NOT in packages then you will need to do the
> following:
>
> For -current:
> Update your ports tree at the SAME time as you update -current, never
> before or after.
>
> make clean
> make update
> make repackage
> make reinstall

Huh???? this reads like an excerpt of freebsd's handbook or something.

if make update works, you have a new package, and it's installed.
The rest isn't needed.

We always, always make package even for updates.

The only trouble is that sometimes, make package won't work if an older
version is already installed (you've got to thank the gnu autohell for
that, mostly).

dpb -R -u -U is also a possibility, though its not 100%.

And out-of-date will tell you which of your ports you need to rebuild.

One longer, more sure-fire procedure would be to
pkg_info -q -m -P -a >list
pkg_delete /var/db/pkg/*
dpb -I list

(e.g., grab the list of packages you really want, zap the old ones, rebuild
them and install with dpb)

Reply via email to