port -u upgrade outdated

Daniel J. Luke dluke at geeklair.net
Wed Oct 3 18:23:57 PDT 2007


On Oct 3, 2007, at 9:19 PM, Paul Phillips wrote:
> On Thu, Oct 04, 2007 at 01:54:43AM +0200, Thomas De Contes wrote:
>>  there is still a minor problem : waste of disk space
>>  since each old version remains on the disk, whereas they are  
>> completely
>>  useless :-/
>>
>>  do you see what i mean ?
>
> I deal with this by running this inelegant alias once in a while:
>
>   alias portclean="sudo port installed|grep -v active|grep -v
>   following|xargs -L 1 sudo port -f uninstall"
>
> It uninstalls all inactive ports.  Don't use it if that's not what  
> you want.

Why not just:

sudo port -f uninstall inactive

?
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20071003/7e70b615/PGP.bin


More information about the macports-users mailing list