Home > Article > Backend Development > The Cache directory location of the Composer installation package in Windows 7 environment, windows7composer_PHP tutorial
http://segmentfault.com/a/1190000000355928
https://getcomposer. org/doc/
Let’s talk about the usage of Composer later. Now we only record the Cache directory of the Composer installation package in the Windows 7 environment. Let’s look at the English first
COMPOSER_CACHE_DIR#
The <code><strong>COMPOSER_CACHE_DIR</strong>
COMPOSER_CACHE_DIR var allows you to change the composer cache<b>cache</b>-dir
directory, which is also configurable via the
-dir option. By default it points to $ COMPOSER_HOME/C:Users<user>AppDataLocal<b>Composer</b></user>
cache%LOCALAPPDATA%/<b>Composer</b>
on *nix and OSX, and C:Users<user>AppDataLocal</user>
(or %LOCALAPPDATA%/
) on Windows.
In the windows environment, this is the directory C:UsersXXXAppDataLocalComposer
You can see that there are compressed files in the phpunit folder.
"symfony/symfony": "v2.1.4"
"2.1.*"
So you won’t feel confused after reading the following. ">=2.2, <code>stable
Composer from the past year will automatically archive the dist package you downloaded. By default, the dist package is used for tagged versions, such as minimum-stability
, or wildcards or version ranges,
(if you use dev-master
as your install
. update
--prefer-dist
dist packages can also be used for branches such as
C:\Windows\Installer
C:\Windows\Installer\$PatchCache$
After changing, errors may occur, it is not recommended.
First, check "Show hidden files" in the folder options of the control panel, and then look for "MSOCache" in the Win7 system disk directory, which is the installation directory of Office. (At least after Office03, 07, and 10 are installed normally, In the MSOCache directory)