If not all, then so many usersrepeatedly noticed that after installing the MS Visual Studio software package, the Package Cache directory appears on the system disk. What is this folder? What is it for? Can I get rid of it to clear an empty space? We'll talk about all this in the article.
Many users regard the issue of its removal as skeptical, which can lead to unpredictable consequences in terms of the performance of the main application.
Package Cache: What is this folder?
Let's start with the simplest. Let's look at the Package Cache directory itself. What is this folder, it is easy to understand, if you refer to the main program Visual Studio.
If anyone does not know, this application is compulsoryto installation when using powerful graphics packages or resource-intensive games on computers (without it they simply will not work). But why then in Windows does the Package Cache folder appear immediately after the installation of the main program? The answer is simple: the application automatically reserves space in the system partition for its needs, which are reduced to creating and storing backups of the working program and for the timely installation of update packages. It is not possible to change the location of the created directory to the installation process, since all this happens in the background.
For earlier versions of Visual Studio, the sizefolder should not exceed 50 MB. In later versions, the free space is reserved at 2.5 GB, provided that the main installation distribution of the application, for example, of the 2015 release, is 6.15 GB.
What is the Package Cache folder for Windows 7? Roughly speaking, it's in its main purpose is to quickly automatically restore the work of Visual Studio from the backup copy by the type of how it is done for the entire system as a whole in case of sudden failures. It is clear that keeping a distribution that takes up three times more free disk space than a cached data directory is completely inadvisable, because you can restore the program from the folder with copies.
Can I uninstall the Package Cache folder from the system partition?
Now a few words about the removal. What is this folder (Package Cache), a little understood. But to solve a further problem it is necessary to build on the recommendations of Visual Studio developers from Microsoft Corporation. They do not recommend deleting this directory in any way.
If the user intentionally or accidentallydeleted this directory, when you start downloading updates to the program, it will receive a message stating that it is impossible to determine the source of updates. The same notification will also appear in a situation where a failure has occurred. This is understandable: since there is no backup, the application can not be restored.
Transferring a folder to another logical partition
But it is not all that bad. At least, it is believed (and this is confirmed by all specialists) that if you can not remove the Package Cache directory, you can simply move it to another disk or to a logical partition with more free space. To do this, first run the command line (necessarily on behalf of the administrator) or through the console "Run" (cmd), either through the start menu, or by opening the cmd.exe executable in the System32 location via the RMB.
Now it's a little thing. Before entering the move commands in the logical partition (for example, on the "D" disk), you need to create a directory C_DRIVE, in it - the ProgramData folder, and already in this folder - the Package Cache directory. After that, copy the contents of the original directory from the ProgramDataPackage Cache location on drive "C" to a new location. After the copying is completed, the initial directory in the system partition is deleted.
Please note: by default the ProgramData folder on the system disk is hidden, so in the "Explorer" it is necessary to enable the display of the corresponding files and folders through the view menu.
After that, the program should determinewhere the cached data is located, the command line first specifies the string C:> rmdir / s / q "C: ProgramDataPackage Cache", and then one more C:> mklink / D "C: ProgramDataPackage Cache" "D: C_DRIVEProgramDataPackage Cache". The successful completion of the operation will be indicated by the appearance of a message about assigning a symbolic link to the new directory. Commands are entered with quotation marks and spaces, as shown above.
Instead of the total
That's all that concerns the Packager Cache directory. What kind of folder it is, and what actions can be taken with it so as not to disrupt the functionality of the Visual Studio program, I think it is already clear. In any case, it's not recommended to get rid of this object simply (without using the original directory's contents and entering additional commands). Otherwise, not only updates will not be installed, but the program itself will have to be completely re-installed.</ p>