Source level upgrade from 4.9 to CURRENT..
kraduk at googlemail.com
Fri Sep 18 09:48:09 UTC 2009
2009/9/17 Anonymous <swell.k at gmail.com>
> krad <kraduk at googlemail.com> writes:
> > now for the local packages you have two options: rebuild or install
> > compatibility libraries
> > I usually go for rebuild
> > 1.mv /usr/local /usr/local.old
> > 2. mv /var/db/pkg /var/db/pkg.old
> > 3. reinstall
> > ls /var/db/pkg.old/| while read f; do pkg_info -o $f| tail -2; done |
> > -e "s/^.*\///" | sort -uls /var/db/pkg/| while read f; do pkg_info -o $f|
> > tail -2; done | sed -e "s/^.*\///" | sort -u | while read p; do pkg_add
> > $p; done
> > 4. copy your configs accross from the /usr/local.old dir
> > Finally after you have tested and are happy all is ok cleanup
> > rm -rf /usr/local.old /var/db/pkg.old
> > cd /usr/src
> > yes | make delete-old-files delete-old-libs delete-old-dirs
> I think obsolete header files should be removed *before* ports rebuild.
> Some ports may accidentally decide to use them based on their presence.
probably correct I do tend to do it after the new world is installed
More information about the freebsd-current