Package Cache 可以删除吗?
结论
这个答案就是不建议“删除”
怎么办?
虽然不建议删除,但是我们可以将这个文件夹移动到其他的盘符,以节省C盘的容量。
将C:\ProgramData\Package Cache
文件夹移动到了F:\Program
目录中,所以新路径就是F:\ProgramData\Package Cache
然后使用管理员打开cmd。
输入:mklink /J "C:\ProgramData\Package Cache" "F:\ProgramData\Package Cache"
回车即可,CMD提示:为 C:\ProgramData\Package Cache <<===>> F:\ProgramData\Package Cache 创建的联接
你会发现打开C:\ProgramData
后,Package Cache没变啊。。。。还是原来味道。:)
英文版
Can I delete the the folder C:\ProgramData\Package Cache\
?
There have been conflicting reports about whether the absence of this folder (as a consequence of deleting it) will actually and in all cases cause issues with the visual studio installation, ie during normal operation, during reinstall, patch/upgrade, repair install, or uninstall.
解决方案如下:
移动这个目录到你的其他盘符中。
创建链接(Create the junction)
两种方式来创建
一、使用Windows 命令行的方式 原生的方式来进行创建软链接
Option 1. (natively): Just issue the built-in Windows Vista / 7 / 8 command and the cmd prompt:
在CMD中输入:mklink /J 旧的目录 新的目录 (mklink /J oldpath newpath)
二、使用LES工具来创建(个人觉得没必要。使用CMD好处多多)
Option 2. (using a tool) : Another GREAT alternative is a free handy utility I've been using for years called "Link Shell Extension" .LSE is free and you can find it here (or Google for it): http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html
LSE allows you to create symlinks, hardlinks, junctions, smartcopies, smartclones, smart mirrors, smart moves, splices, multiple sources, and bunch of other stuff I found too confusing to read, frankly.But, it's a brilliant free product that creates a Windows Explorer context menu that allows you right-click on your LINK-TARGET folder then drag it to where you'd like to create the actual link.You can of course rename the link to anything you'd like.
原文来自:
http://superuser.com/questions/455853/can-i-delete-the-the-folder-c-programdata-package-cache
本文来自:Package Cache 可以删除吗?-小码农,转载请保留本条链接,感谢!
- 本文标签: package cache 删除 符号链接
- 本文链接: https://djc8.cn/archives/cache-package-can-delete-it.html
- 版权声明: 本文由小码农原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权