bitcoin-tools / bitcoin-tools/nodebuilder

Prevent apt cache from growing over time

Open
#482 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.