delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.4 required=5.0 tests=AWL,BAYES_40,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <5109EE41.1020504@etr-usa.com> |
Date: | Wed, 30 Jan 2013 21:08:33 -0700 |
From: | Warren Young <warren AT etr-usa DOT com> |
User-Agent: | Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygwin:the /usr/share directory |
References: | <5109E1A7 DOT 7050005 AT gmail DOT com> <5109E355 DOT 2000908 AT cygwin DOT com> |
In-Reply-To: | <5109E355.2000908@cygwin.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 1/30/2013 20:21, Larry Hall (Cygwin) wrote: > On 1/30/2013 10:14 PM, ping wrote: >> [ping AT ping-new-laptop usr]$ du -sh ./share/ >> 4.4G ./share/ > > Mine is less than .5G Mine's 0.8 GiB. > Doing a "du -sh ./share/*" should > give you a good overview of which directories contain the most stuff and > help you target which packages you may consider removing. Here's a script I call "pigs" that I use for the purpose: ---------- 8< ------------ cut here ------------ 8< --------------- #/bin/sh if [ $# -eq 0 ] then dir=. else if [ ! -d $1 ] then echo usage: $0 [directory] [options] echo echo " Prints kb in use in directory; if directory isn't" echo " given, '.' is assumed." echo echo " If you give options, they are passed to du, in addition" echo " to the -sk options the script provides." echo exit fi dir=$1 fi echo -n Hang on, finding pigs in if [ $dir = . ] then echo " current directory..." else echo " \"$dir\"..." fi du -sk $2 $dir/* | sort -rn | head -10 ---------- 8< ------------ cut here ------------ 8< --------------- This script helps me find the 10 biggest pigs on any system with a basic POSIX user environment. For what it's worth, the top pig in Cygwin on the box I'm using right now is TeX. Unfortunately, while you may not use it directly, it's an indirect dependency for a lot of software. You might be able to remove it anyway if you aren't using the software features that require it. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |