From e150bd5f401dfad0234ad0fb0cfac4a48da97eaa Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 4 Dec 2017 17:31:20 +0100 Subject: [PATCH] Cleanup all -dev packages --- zz-cleanup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zz-cleanup.sh b/zz-cleanup.sh index a45b3d9..30ca956 100755 --- a/zz-cleanup.sh +++ b/zz-cleanup.sh @@ -1,7 +1,8 @@ #!/bin/bash # Remove packages not necessary for release -apt-get -y purge bash-completion file gcc git htop libpq-dev python-dev openssh-server tree uuid-runtime vim +apt-get -y purge bash-completion file gcc git htop openssh-server tree uuid-runtime vim +dpkg -l | awk '{print $2}' | grep '\-dev$' | apt-get -y purge apt-get -y --purge autoremove # Clean package cache