MacOS : Une mauvaise gestion des fichiers temporaires … ( /var/private/folder/ App Store )

Il suffit de faire la commande suivante pour s’en rendre compte :

$ sudo du -d 1 -h /private/var/folders/
 22M	/private/var/folders//gz
298M	/private/var/folders//zz
  0B	/private/var/folders//v3
124G	/private/var/folders//gy
 21M	/private/var/folders//f8
124G	/private/var/folders/

On se retrouve avec 124 Go de fichiers temporaires ?! Le diagnostic est le même avec : OmniDiskSweeper ( https://www.omnigroup.com/more/ )

Pourquoi dans Gestion de Stockage on ne parle pas des fichiers temporaires de l’App Store ?

Ma version de Mac :

Dans le détail c’est com.apple.appstore qui est le responsable :

$ sudo du -d 1 -h /private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/*/*
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/0E3C9FA3-4DAF-44AA-A006-8457AF11AD98/preflight.pfpkg
2,8G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/0E3C9FA3-4DAF-44AA-A006-8457AF11AD98/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/2A84E0FD-B14A-4481-A0B6-FDD9873E36D9/preflight.pfpkg
3,5G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/2A84E0FD-B14A-4481-A0B6-FDD9873E36D9/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/381FA00A-F91B-414F-A045-379A6592F19B/preflight.pfpkg
5,7G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/381FA00A-F91B-414F-A045-379A6592F19B/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/41BCCFCA-E8A5-49E6-BFE1-75C3494F7B01/preflight.pfpkg
1,4G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/41BCCFCA-E8A5-49E6-BFE1-75C3494F7B01/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/51938FE4-E2A8-45E7-8642-792754C64619/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/51938FE4-E2A8-45E7-8642-792754C64619/preflight.pfpkg
7,2G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/51938FE4-E2A8-45E7-8642-792754C64619/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/5C7F03C1-32AB-4A15-8EA2-A8472B920C3C/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/5C7F03C1-32AB-4A15-8EA2-A8472B920C3C/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/6F1729FF-2405-430C-88D7-402A0F0BC3B7/preflight.pfpkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/6F1729FF-2405-430C-88D7-402A0F0BC3B7/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/79F05F39-F4F8-426D-BDD9-8BDA257584AA/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/79F05F39-F4F8-426D-BDD9-8BDA257584AA/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/79F05F39-F4F8-426D-BDD9-8BDA257584AA/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/9EE1477D-CEB8-480C-A8E7-C1BF61081FF7/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/9EE1477D-CEB8-480C-A8E7-C1BF61081FF7/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/A20ACE33-44DB-45C0-B7CB-51437D7BAF5B/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/A20ACE33-44DB-45C0-B7CB-51437D7BAF5B/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/BFA3A101-8D7A-4A5B-A002-DDC60BE22B1B/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/BFA3A101-8D7A-4A5B-A002-DDC60BE22B1B/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/BFA3A101-8D7A-4A5B-A002-DDC60BE22B1B/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/C8DEC436-F329-40C9-942F-43CEAD6A4BEF/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/C8DEC436-F329-40C9-942F-43CEAD6A4BEF/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DB603631-0598-467A-9EC1-73A336F7A7BA/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DB603631-0598-467A-9EC1-73A336F7A7BA/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DB603631-0598-467A-9EC1-73A336F7A7BA/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DE9817B1-1C39-4AD7-B45E-346CFEC4F111/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DE9817B1-1C39-4AD7-B45E-346CFEC4F111/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DFD32FE0-039E-4E65-92E7-8B00EA3E9127/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DFD32FE0-039E-4E65-92E7-8B00EA3E9127/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F29A01FE-CEF7-4E03-9022-6746E6170B8C/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F29A01FE-CEF7-4E03-9022-6746E6170B8C/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F37867EA-8210-447A-9BB0-5BB67748A19B/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F37867EA-8210-447A-9BB0-5BB67748A19B/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F37867EA-8210-447A-9BB0-5BB67748A19B/zvf6369715154166298559.pkg
 68K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/Intel(R) HD Graphics Unknown
196K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/Intel(R) HD Graphics 630
132K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/3902
 68K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/AMD Radeon Pro 560
532K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal
  0B	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/mds/mds.lock
 48K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/mds/mdsDirectory.db
8,0K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/mds/mdsObject.db

J’ai bien envi de faire une cmmande du type :

sudo find /var/folders/ -type d -name "com.apple.appstore" -exec rm -Rf {} \;

Quand je regarde leur interface:

A noter que quand on utilise la commande :

$ sudo du -sh /*
 30G	/Applications
4,0G	/Library
1,7T	/System
112G	/Users
1,4T	/Volumes
2,4M	/bin
  0B	/com.apple.TimeMachine.localsnapshots
  0B	/cores
8,0K	/dev
  0B	/etc
  0B	/home
1,3G	/opt
130G	/private
1012K	/sbin
  0B	/tmp
3,7G	/usr
  0B	/var

Il faut soustraire de /System la taille /Volumes , sinon on a les disques externes … cela donne pour mon cas :

$ sudo du -sh /*
 30G	/Applications
4,0G	/Library
 12G	/System
112G	/Users
2,4M	/bin
  0B	/com.apple.TimeMachine.localsnapshots
  0B	/cores
8,0K	/dev
  0B	/etc
  0B	/home
1,3G	/opt
130G	/private
1012K	/sbin
  0B	/tmp
3,7G	/usr
  0B	/var

A la limite on peut faire :

$ sudo du -sh /System/*
733M	/System/Applications
2,0M	/System/DriverKit
 11G	/System/Library
1,6T	/System/Volumes
291M	/System/iOSSupport

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Time limit is exhausted. Please reload CAPTCHA.