diff options
Diffstat (limited to 'share/hydractl/dist-upgrade')
-rwxr-xr-x | share/hydractl/dist-upgrade | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/hydractl/dist-upgrade b/share/hydractl/dist-upgrade index 85f93cb..82de2e9 100755 --- a/share/hydractl/dist-upgrade +++ b/share/hydractl/dist-upgrade @@ -169,6 +169,14 @@ function hydra_system_upgrade_custom { function hydra_system_upgrade_cleanup { apt-get autoremove --purge -y apt-get clean + + local obsolete="`apt-show-versions | grep 'No available version'`" + + if [ ! -z "$obsolete" ]; then + echo "Please check and remove the following obsolete packages:" + echo "" + apt-show-versions | grep 'No available version' + fi } # Check for root user |