Repository navigation
Expand file tree
/
Copy pathlinux.json
More file actions
179 lines (179 loc) · 5.83 KB
/
Copy pathlinux.json
File metadata and controls
179 lines (179 loc) · 5.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"schemaVersion": 1,
"pack": "linux",
"updated": "2026-07-28",
"rules": [
{
"id": "browser-caches",
"kind": "location",
"title": "Browser caches",
"description": "Chrome / Firefox caches — pages reload a bit slower once",
"category": "cache",
"confidence": "high",
"paths": [
"{home}/.cache/google-chrome",
"{home}/.cache/chromium",
"{home}/.cache/mozilla"
]
},
{
"id": "dev-caches",
"kind": "location",
"title": "Developer caches",
"description": "Package-manager and tool caches — rebuilt when next used",
"category": "cache",
"confidence": "high",
"paths": [
"{home}/.npm/_cacache",
"{home}/.cache/yarn",
"{home}/.cache/pip",
"{home}/.m2/repository",
"{home}/.cargo/registry",
"{home}/.gradle/caches"
]
},
{
"id": "package-manager-caches",
"kind": "location",
"title": "Package manager caches",
"description": "Downloaded .deb / package files kept after installing. They are owned by root, so the package manager should clear them rather than the Trash.",
"category": "cache",
"confidence": "high",
"action": "advice",
"adviceCommand": "sudo apt-get clean · sudo paccache -r · sudo dnf clean all",
"paths": [
"/var/cache/apt/archives",
"/var/cache/pacman/pkg",
"/var/cache/dnf",
"/var/cache/zypp/packages"
]
},
{
"id": "journal-logs",
"kind": "location",
"title": "systemd journal logs",
"description": "The system log. It is capped by configuration rather than deleted by hand — vacuuming it is the supported way, and keeps journalctl working.",
"category": "cache",
"confidence": "high",
"action": "advice",
"adviceCommand": "sudo journalctl --vacuum-size=200M",
"paths": ["/var/log/journal"]
},
{
"id": "flatpak-snap-runtimes",
"kind": "location",
"title": "Flatpak and Snap runtimes",
"description": "Old runtime versions and retained Snap revisions. Removing the directory by hand breaks the apps that share those runtimes — the package tools free the same space safely.",
"category": "cache",
"confidence": "high",
"action": "advice",
"adviceCommand": "flatpak uninstall --unused · sudo snap set system refresh.retain=2",
"paths": [
"/var/lib/flatpak/runtime",
"{home}/.local/share/flatpak/runtime",
"/var/lib/snapd/snaps"
]
},
{
"id": "pkgcache-npm",
"kind": "package-cache",
"title": "npm cache",
"description": "Downloaded npm tarballs and npx scratch installs — npm refetches what it needs",
"category": "cache",
"confidence": "high",
"ecosystem": "npm",
"paths": ["{home}/.npm/_cacache", "{home}/.npm/_npx"],
"clearCommand": "npm cache clean --force"
},
{
"id": "pkgcache-yarn",
"kind": "package-cache",
"title": "Yarn cache",
"description": "Yarn's global package cache",
"category": "cache",
"confidence": "high",
"ecosystem": "yarn",
"paths": ["{home}/.cache/yarn", "{home}/.yarn/berry/cache"],
"clearCommand": "yarn cache clean"
},
{
"id": "pkgcache-pnpm",
"kind": "package-cache",
"title": "pnpm store",
"description": "pnpm's content-addressed package store",
"category": "cache",
"confidence": "high",
"ecosystem": "pnpm",
"paths": ["{home}/.local/share/pnpm/store", "{home}/.pnpm-store"],
"clearCommand": "pnpm store prune"
},
{
"id": "pkgcache-pip",
"kind": "package-cache",
"title": "pip cache",
"description": "Downloaded and built Python wheels",
"category": "cache",
"confidence": "high",
"ecosystem": "python",
"paths": ["{home}/.cache/pip"],
"clearCommand": "pip cache purge"
},
{
"id": "pkgcache-cargo",
"kind": "package-cache",
"title": "Cargo registry",
"description": "Downloaded crate sources and their .crate archives",
"category": "cache",
"confidence": "high",
"ecosystem": "cargo",
"paths": ["{home}/.cargo/registry"],
"clearCommand": "rm -rf ~/.cargo/registry"
},
{
"id": "pkgcache-maven",
"kind": "package-cache",
"title": "Maven repository",
"description": "Every jar Maven has ever downloaded — refetched on the next build",
"category": "cache",
"confidence": "high",
"ecosystem": "maven",
"paths": ["{home}/.m2/repository"],
"clearCommand": "mvn dependency:purge-local-repository"
},
{
"id": "pkgcache-gradle",
"kind": "package-cache",
"title": "Gradle caches",
"description": "Gradle's dependency and build caches",
"category": "cache",
"confidence": "high",
"ecosystem": "gradle",
"paths": ["{home}/.gradle/caches"],
"clearCommand": "gradle --stop, then rm -rf ~/.gradle/caches"
},
{
"id": "pkgcache-apt",
"kind": "package-cache",
"title": "apt / dpkg archives",
"description": "Downloaded .deb packages kept after installing. Root owns them, so let apt clear them.",
"category": "cache",
"confidence": "high",
"ecosystem": "apt",
"action": "advice",
"adviceCommand": "sudo apt-get clean",
"paths": ["/var/cache/apt/archives"],
"clearCommand": "sudo apt-get clean"
},
{
"id": "pkgcache-linuxbrew",
"kind": "package-cache",
"title": "Homebrew cache",
"description": "Downloaded bottles and source archives kept after installing",
"category": "cache",
"confidence": "high",
"ecosystem": "homebrew",
"paths": ["{home}/.cache/Homebrew"],
"clearCommand": "brew cleanup -s"
}
]
}