bitcoin-tools / bitcoin-tools/nodebuilder
Prevent apt cache from growing over time
- Dominant language
- Shell
- Stars
- 7
- Forks
- 0
- Avg merge
- 2h 37m
- Merged PRs (30d)
- 28
Description
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
```
for apt_cache_deb in /var/cache/apt/archives/*.deb; do
apt_cache_package=$(dpkg-deb --field "${apt_cache_deb}" Package)
if ! dpkg --list | grep --quiet "^ii ${apt_cache_package} "; then
echo "Deleting unused cache ${apt_cache_deb}"
rm "${apt_cache_deb}"
fi
done
```
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
Contributor guide
Assessment
This issue has not been assessed yet.