How-to maintain upgrade??
kline at sage.thought.org
Mon Oct 9 21:38:36 PDT 2006
On Mon, Oct 09, 2006 at 06:35:37PM -0400, Gerard Seibert wrote:
> On Monday 09 October 2006 17:53, Gary Kline wrote:
> I kind of do the same thing on a weekly basis. I created a shell script that
> runs the following:
> cd /usr/ports/distfiles # Change to ports distfile directory
> rm -rdf * # Clean it out
Why, exactly, you remove the distfiles? (I'm thnking of times
when I haven't moved the hard-to-retrieve files [JAVA, e.g]
to my other FBSD servers.) Is there something lurking there
than might muck up builds??
> /usr/local/sbin/portsclean -CDLP # make sure the ports are clean
I do this after an upgrade. ---Wouldn't hurt here, tho.
> /usr/sbin/portsnap cron # Run portsnap from CRON
> /usr/sbin/portsnap update # Install new updated ports tree
> /usr/local/bin/portmanager -u -l -y # Run portmanager to update the system
I've come to prefer p'manager to portupgrade; each run takes
endless hours--at least three days. Do you know if there is
a way to upgrade only the dependencies that need it?? I used
-f and portmanager seemed to upgrade eerything. Yes, it may
have been my imagination!
> I only run this weekly. If something like Open Office needs to be updated
> alone with KDE for instance, my system would not complete the process in 24
> hours. Updating the ports tree while running an updating utility like
> portmanager or portupgrade is generally considered a bad thing.
Thanks for your script ideas,
> Gerard Seibert
> gerard at seibercom.net
> And that's the way it is...
> Walter Cronkite
Gary Kline kline at thought.org www.thought.org Public service Unix
More information about the freebsd-questions