Re: ports clean
On Wed, Aug 15, 2007 at 09:27:15AM -0400, Grant Peel wrote: > How con I run make clean in the /usr/ports directory and ensure the CPU does > not get all eaten up? > > I need to do this on two name servers so no users need to log in or > anything...it can run for a whole day and not bother anyone. Why do you need to do that? What are you trying to do? Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ports clean
On Wed, Aug 15, 2007 at 09:27:15AM -0400, Grant Peel wrote: > How con I run make clean in the /usr/ports directory and ensure the > CPU does not get all eaten up? > > I need to do this on two name servers so no users need to log in or > anything...it can run for a whole day and not bother anyone. "portsclean -C" does "rm -r /usr/ports/*/*/work" You might add "nice +20" (or whatever the syntax is for your shell) in front of that. -- David Kelly N4HHE, [EMAIL PROTECTED] Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: ports clean
>How con I run make clean in the /usr/ports directory and ensure the CPU does >not get all eaten up? >I need to do this on two name servers so no users need to log in or >anything...it can run for a whole day and not bother anyone. >Thanks all,. >-Grant Can,t you use portsclean -CDD It will delete old distfiles not needed anymore and remove all work directory's from the ports. Regards, Johan No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.19/953 - Release Date: 14-8-2007 17:19 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ports clean
How con I run make clean in the /usr/ports directory and ensure the CPU does not get all eaten up? I need to do this on two name servers so no users need to log in or anything...it can run for a whole day and not bother anyone. Thanks all,. -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ports Clean
On Fri, Jul 13, 2007 at 01:02:36PM -0400, Grant Peel wrote: > Hi all, > > My ports collection on some of the servers is wasting alot of space. > > What would be the best method to 'cleanout' the ports dir without adversly > affecting the operation of the rest of the server? > > All of the servers are live production servers. You can add the following line to your /etc/make.conf WRKDIRPREFIX=/usr/obj/ports This will change the workdir of you portstree to /usr/obj/ports. No working directory will be created under /usr/ports so you can just clean up your workdirs with the following command: rm -rf /usr/obj/ports/* -- Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174 "Worker bees can leave. Even drones can fly away. The Queen is their slave." pgpX7SK8IwzWp.pgp Description: PGP signature
Re: Ports Clean
On Fri, Jul 13, 2007 at 01:05:09PM -0500, Josh Paetzel wrote: > On Friday 13 July 2007, Grant Peel wrote: > > Hi all, > > > > My ports collection on some of the servers is wasting alot of > > space. > > > > What would be the best method to 'cleanout' the ports dir without > > adversly affecting the operation of the rest of the server? > > > > All of the servers are live production servers. > > > > -Grant > > There are a few possibilities. > > 1) cd to each installed ports dir and do a make clean > 2) do the same but a make distclean > 3) rm -rf /usr/ports/*/*/work > 4) rm -rf /usr/ports and recvsup the tree > > -- > Thanks, > > Josh Paetzel or you can put the following in a script # cleaning all work directories of install ports. plist=`pkg_version -voI |awk '{ print $1 }'` for porg in $plist ; do cd /usr/ports/${porg} && make clean done -- Alexander FreeBSD 6.0-RELEASE i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ports Clean
Josh Paetzel wrote: On Friday 13 July 2007, Grant Peel wrote: Hi all, My ports collection on some of the servers is wasting alot of space. What would be the best method to 'cleanout' the ports dir without adversly affecting the operation of the rest of the server? All of the servers are live production servers. -Grant There are a few possibilities. 1) cd to each installed ports dir and do a make clean 2) do the same but a make distclean 3) rm -rf /usr/ports/*/*/work 4) rm -rf /usr/ports and recvsup the tree No -- install /usr/ports/ports-mgmt/portupgrade via ports or packages. portsclean -DD portsclean -C -- Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708 Senior System Admin - Riderway, Inc. http://riderway.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ports Clean
On Friday 13 July 2007, Grant Peel wrote: > Hi all, > > My ports collection on some of the servers is wasting alot of > space. > > What would be the best method to 'cleanout' the ports dir without > adversly affecting the operation of the rest of the server? > > All of the servers are live production servers. > > -Grant There are a few possibilities. 1) cd to each installed ports dir and do a make clean 2) do the same but a make distclean 3) rm -rf /usr/ports/*/*/work 4) rm -rf /usr/ports and recvsup the tree -- Thanks, Josh Paetzel pgp82OPCTptKf.pgp Description: PGP signature
Ports Clean
Hi all, My ports collection on some of the servers is wasting alot of space. What would be the best method to 'cleanout' the ports dir without adversly affecting the operation of the rest of the server? All of the servers are live production servers. -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"