Date: Fri, 18 Sep 2009 10:48:07 +0100 From: krad <kraduk@googlemail.com> To: Anonymous <swell.k@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Source level upgrade from 4.9 to CURRENT.. Message-ID: <d36406630909180248t5dcff38bl143dc2e9fd12b291@mail.gmail.com> In-Reply-To: <8663bhrxcr.fsf@gmail.com> References: <SNT114-W30A82828223906987304DBEDE30@phx.gbl> <20090916065625.GA627@lonesome.com> <200909161451.02432.mel.flynn%2Bfbsd.current@mailing.thruhere.net> <20090916225319.GA1790@duncan.reilly.home> <4AB17542.9010401@FreeBSD.org> <20090917001151.GA4829@duncan.reilly.home> <20090917074121.GA13242@ei.bzerk.org> <d36406630909171349g7a6aa72fr38c5c5852936dbe1@mail.gmail.com> <8663bhrxcr.fsf@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/9/17 Anonymous <swell.k@gmail.com> > krad <kraduk@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 | > sed > > -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 > -rv > > $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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d36406630909180248t5dcff38bl143dc2e9fd12b291>