您的位置:首页 > 其它

cygwin更新文件清理

2015-03-19 10:27 288 查看
我更新cygwin时一般先选择“Download without installing”,避免安装到一半网断掉。

cygwin的下载路径下(如:http%3a%2f%2fmirrors.163.com%2fcygwin%2f\x86_64\release\)每个应用都包含里以前的历史版本,很占空间。

清理这些历史版本可以用以下脚本

cd /cygdrive/e/back/cyg17/http%3a%2f%2fmirrors.163.com%2fcygwin%2f
sed -n '/\@ /,/install:/p' x86_64/setup.ini|sed -n '/install: /p'|awk '{print $2}' |sort > list.install
find x86_64 -type f ! -name setup.ini |sort > list.find
rm comm -23 list.find list.install
rm list.install list.find
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  cygwin