You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Automate is upgraded and dependencies are upgraded, additional copies of the dependencies may be left behind. As these dependencies age, they may be detected by customers vulnerabilities scanners and cause additional reporting and remediation work for the customer. We should clean up unused old packages from disk.
Keep in mind that automate prevents other services from running in it's habitat supervisor, but that a system may have a separate habitat supervisor running using the same /hab filesystem. See #455 and #2478.
hab pkg uninstall does have a --keep-latest n flag that keeps at least n copies of a package, and won't uninstall packages that are dependencies of others. Something like this works, but don't do this:
# don't do this
INSTALLED_PACKAGES=$(hab pkg list -a | awk -F/ '{print $1 "/" $2 }' | uniq)
for p in $INSTALLED_PACKAGES
do
sudo hab pkg uninstall $p --keep-latest 1
done
The text was updated successfully, but these errors were encountered:
When Automate is upgraded and dependencies are upgraded, additional copies of the dependencies may be left behind. As these dependencies age, they may be detected by customers vulnerabilities scanners and cause additional reporting and remediation work for the customer. We should clean up unused old packages from disk.
Keep in mind that automate prevents other services from running in it's habitat supervisor, but that a system may have a separate habitat supervisor running using the same
/hab
filesystem. See #455 and #2478.hab pkg uninstall
does have a--keep-latest n
flag that keeps at least n copies of a package, and won't uninstall packages that are dependencies of others. Something like this works, but don't do this:The text was updated successfully, but these errors were encountered: