diff --git a/rm-old-pve-kernel.sh b/rm-old-pve-kernel.sh index 81a7e47..5ae0743 100644 --- a/rm-old-pve-kernel.sh +++ b/rm-old-pve-kernel.sh @@ -1,3 +1,4 @@ #!/bin/env bash +apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove && apt-get -y autoclean apt-get purge $( dpkg --list | grep -P -o "pve-kernel-\d\S+" | grep -v $(uname -r | grep -P -o ".+\d") ) \ No newline at end of file