Re: Deleting ports distfiles

2014-11-18 Thread RW
On Mon, 17 Nov 2014 07:40:03 -0600
Adam Vande More wrote:

 On Mon, Nov 17, 2014 at 7:12 AM, RW rwmailli...@googlemail.com
 wrote:
 
  portmaster removes any files not associated with currently installed
  packages, the other two do can do that, but also have the option to
  leave any files that are still up-to-date with respect to the ports
  tree.
 
 
 This is a misleading statement.  portmaster also has that option.

My mistake. I'd always assumed that in  -t --clean-distfiles the
-t had its usual meaning of recurse through port dependencies. What
makes that particularly confusing is that recursing to handle missing
dependencies would be a useful option.


I'd still recommend distviper over portmaster because it's faster.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-17 Thread RW
On Sun, 16 Nov 2014 14:10:00 -0900
Royce Williams wrote:

 On Sun, Nov 16, 2014 at 1:55 PM, andrew clarke m...@ozzmosis.com
 wrote:
  On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt
  (pvo...@uos.de) wrote:
 
  I have just seen that /usr/ports/distfiles has grown up to 12 GiB.
  My hopefully not too stupid question is: Can I safely delete all
  files under /usr/ports/distfiles, e.g.
 
  # rm -rf /usr/ports/distfiles/*
 
  I strongly suppose so but I am not sure. Thanks for any feedback.
 
  Yes. Missing distfiles will be redownloaded when/if you rebuild a
  port.
 
 You can also delete just the unused ones, if you're using portmaster
 or portupgrade ('portsclean' command).  See the bottom of the Using
 the Ports Collection docs page:
 
 https://www.freebsd.org/doc/handbook/ports-using.html
 
 Even if you don't use portmaster for anything else, using it for this
 purpose is worth the install, IMO.

portupgrade's portsclean utility and distviper (from
sysutils/bsdadminscripts) can do it more flexibly.

portmaster removes any files not associated with currently installed
packages, the other two do can do that, but also have the option to
leave any files that are still up-to-date with respect to the ports
tree. Most distfiles are replaced every few months, so it doesn't make
a huge difference in terms of disk space. 
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-17 Thread Adam Vande More
On Mon, Nov 17, 2014 at 7:12 AM, RW rwmailli...@googlemail.com wrote:

 portmaster removes any files not associated with currently installed
 packages, the other two do can do that, but also have the option to
 leave any files that are still up-to-date with respect to the ports
 tree.


This is a misleading statement.  portmaster also has that option.

-- 
Adam
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-17 Thread Warren Block

On Mon, 17 Nov 2014, RW wrote:


portupgrade's portsclean utility and distviper (from
sysutils/bsdadminscripts) can do it more flexibly.

portmaster removes any files not associated with currently installed
packages, the other two do can do that, but also have the option to
leave any files that are still up-to-date with respect to the ports
tree.


Actually, portmaster can do that also:
portmaster -t -y --clean-distfiles
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-17 Thread Jeffrey Bouquet via freebsd-ports


On Mon, 11/17/14, Warren Block wbl...@wonkity.com wrote:


 
 Actually, portmaster can do
 that also:
 portmaster -t -y
 -clean-distfiles
 ___
 Test first   I did not want the majority deleted...

#portsclean -DD -n | tee -a /gz_files
#sed -i bak 's.Delete \/usr\/ports\/distfiles\/..g'   /gz_files
. fifteen minutes on the web to find that line above escaping the path
# grep / /gz_files | less   # in another xterm, /bin/rm -rf the extra 
directories
# grep -v / /gz_files | grep bz2 | xargs -J % /bin/rm -iv %... tests it, 
check output
# ..-v %
 does the above
Repeat the immeditate two lines
above (-iv then -v ) for gz, -i zip, xz, 
(the latter I forgot BTW) and that should be most
of them. I deleted 500 files that way, so am done for the year.
.
Easier posting here than in the forum...
Pardon any typos.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Deleting ports distfiles

2014-11-16 Thread Dr. Peter Voigt
I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My
hopefully not too stupid question is: Can I safely delete all files
under /usr/ports/distfiles, e.g.

# rm -rf /usr/ports/distfiles/*

I strongly suppose so but I am not sure. Thanks for any feedback.

Regards,
Peter
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-16 Thread andrew clarke
On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt (pvo...@uos.de) wrote:

 I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My
 hopefully not too stupid question is: Can I safely delete all files
 under /usr/ports/distfiles, e.g.
 
 # rm -rf /usr/ports/distfiles/*
 
 I strongly suppose so but I am not sure. Thanks for any feedback.

Yes. Missing distfiles will be redownloaded when/if you rebuild a port.

Regards
Andrew
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-16 Thread Royce Williams
On Sun, Nov 16, 2014 at 1:55 PM, andrew clarke m...@ozzmosis.com wrote:
 On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt (pvo...@uos.de) wrote:

 I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My
 hopefully not too stupid question is: Can I safely delete all files
 under /usr/ports/distfiles, e.g.

 # rm -rf /usr/ports/distfiles/*

 I strongly suppose so but I am not sure. Thanks for any feedback.

 Yes. Missing distfiles will be redownloaded when/if you rebuild a port.

You can also delete just the unused ones, if you're using portmaster
or portupgrade ('portsclean' command).  See the bottom of the Using
the Ports Collection docs page:

https://www.freebsd.org/doc/handbook/ports-using.html

Even if you don't use portmaster for anything else, using it for this
purpose is worth the install, IMO.

Royce
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-16 Thread Adam Vande More
On Sun, Nov 16, 2014 at 4:29 PM, Dr. Peter Voigt pvo...@uos.de wrote:

 I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My
 hopefully not too stupid question is: Can I safely delete all files
 under /usr/ports/distfiles, e.g.

 # rm -rf /usr/ports/distfiles/*

 I strongly suppose so but I am not sure. Thanks for any feedback.


It is not necessarily a safe operation to preform depending on the
details.  The downloads in that location may be the last known copy of that
particular port/version at least as a copy available to you.  Deleting
those files could prevent you from rebuilding a certain port/version if
needed.  Nearly all the time this isn't a problem or easily worked around,
but not universally so IME.

After doing a ports upgrade, and ensuring fully correct operation of the
system it's generally safe to run something like portmaster
-t--clean-distfiles to remove stale distfiles.


-- 
Adam
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-16 Thread Ivan Klymenko
В Sun, 16 Nov 2014 23:29:37 +0100
Dr. Peter Voigt pvo...@uos.de пишет:

 I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My
 hopefully not too stupid question is: Can I safely delete all files
 under /usr/ports/distfiles, e.g.
 
 # rm -rf /usr/ports/distfiles/*
 
 I strongly suppose so but I am not sure. Thanks for any feedback.
 

You can clean up, but if you'll rebuild the ports that the source will
be downloaded again.
Therefore it is better to do like this: portmaster -y --clean-distfiles
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

Re: Deleting ports distfiles

2014-11-16 Thread Dr. Peter Voigt
On Sun, 16 Nov 2014 14:10:00 -0900
Royce Williams ro...@tycho.org wrote:

 On Sun, Nov 16, 2014 at 1:55 PM, andrew clarke m...@ozzmosis.com
 wrote:
  On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt
  (pvo...@uos.de) wrote:
 
  I have just seen that /usr/ports/distfiles has grown up to 12 GiB.
  My hopefully not too stupid question is: Can I safely delete all
  files under /usr/ports/distfiles, e.g.
 
  # rm -rf /usr/ports/distfiles/*
 
  I strongly suppose so but I am not sure. Thanks for any feedback.
 
  Yes. Missing distfiles will be redownloaded when/if you rebuild a
  port.
 
 You can also delete just the unused ones, if you're using portmaster
 or portupgrade ('portsclean' command).  See the bottom of the Using
 the Ports Collection docs page:
 
 https://www.freebsd.org/doc/handbook/ports-using.html
 
 Even if you don't use portmaster for anything else, using it for this
 purpose is worth the install, IMO.
 
 Royce

Yeah, that's nice. I have just executed:

# portmaster --clean-distfiles -y

Which freed up 8 GiB of disk space.

Thanks,
Peter
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Deleting ports distfiles

2014-11-16 Thread Dr. Peter Voigt
On Mon, 17 Nov 2014 09:55:01 +1100
andrew clarke m...@ozzmosis.com wrote:

 On Sun 2014-11-16 23:29:37 UTC+0100, Dr. Peter Voigt (pvo...@uos.de)
 wrote:
 
  I have just seen that /usr/ports/distfiles has grown up to 12 GiB.
  My hopefully not too stupid question is: Can I safely delete all
  files under /usr/ports/distfiles, e.g.
  
  # rm -rf /usr/ports/distfiles/*
  
  I strongly suppose so but I am not sure. Thanks for any feedback.
 
 Yes. Missing distfiles will be redownloaded when/if you rebuild a
 port.
 
 Regards
 Andrew
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to
 freebsd-ports-unsubscr...@freebsd.org

Thanks for your confirmation. I would like to clean up before I am
going to rebuild all installed ports after the upgrade to 10.1-RELEASE.

Regards,
Peter
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org