[R-SIG-Mac] Remove devpack4 files

Simon Urbanek simon.urbanek at r-project.org
Sun Oct 11 17:33:15 CEST 2009


On Oct 11, 2009, at 4:21 AM, Andrej Kastrin wrote:

> Dear all,
>
> I install development binaries from devpack4 using the command as  
> follows:
>
> curl -s http://cran.r-project.org/bin/macosx/tools/devpack4-darwin8-bin4.tar.gz 
>  | sudo tar fvxz --overwrite -C
>
> Is there any simple solution to remove all installed files or should  
> I do it manually (file by file)?
>

You can do something like:

sudo bash
files=`tar fvtz devpack4-darwin8-bin4.tar.gz | awk '{print "/"$9}' |   
perl  -e 'print reverse <>'`
rm -f $files 2>/dev/null
rmdir $files 2>/dev/null

Cheers,
Simon



More information about the R-SIG-Mac mailing list