Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th April 2009
sniper007's Avatar
sniper007 sniper007 is offline
Real Name: Jurif
Fdisk Soldier
Join Date: Jun 2008
Location: Slovenia
Posts: 50
Default make distclean


Are there any differences between these two commands ?

 cd /usr/ports/distfiles && rm -R *

cd /usr/ports && make distclean
If anything can go wrong, it will. If it can't, it will anyway
Reply With Quote
  #2   (View Single Post)  
Old 10th April 2009
wnsi wnsi is offline
Real Name: Mitch Morrison
New User
Join Date: Apr 2008
Location: Austin, TX
Posts: 8

One I can think of is that a make distclean will also clean up any leftover files from previous builds. Normally found in /usr/ports/category/portname/work.
Reply With Quote
  #3   (View Single Post)  
Old 11th April 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
Join Date: May 2008
Location: USofA
Posts: 1,546

All the magic is tucked away in the makefiles ;-)
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 12th April 2009
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212

The biggest difference is going to be speed. If you run: # cd /usr/ports && make distclean it is effectively going to go through every single port in the ports tree running make distclean. Now given that there are 20000+ ports, that is going to take a while. If all you want to do is get rid of all of the distfiles, use rm(1).

If you want to be more selective about distfile removal (like only keep the distfiles for ports you have installed) or clean out work directories, use portsclean(1) which is part of ports-mgmt/portupgrade.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make DesktopBSD detect re0? KlaymenDK Other BSD and UNIX/UNIX-like 9 6th January 2009 09:40 PM
make iso bootable from USB stick ccc FreeBSD General 2 30th October 2008 02:28 AM
Make YOUR user SU seadog109 Other BSD and UNIX/UNIX-like 20 18th October 2008 03:51 PM
make.conf lumiwa FreeBSD General 9 8th September 2008 12:15 AM
How to make an image from a DVD PatrickBaer FreeBSD General 11 25th May 2008 11:48 AM

All times are GMT. The time now is 11:55 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick