I ran this on a fresh cloud instance. $ cat /etc/cloud/build.info build_name: server serial: 20150403.2
$ py2pkgs=$(dpkg -l | grep python | grep -v python3 | awk '{print $2}') $ for p in $py2pkgs; do out=$(sudo apt-get remove --dry-run $p 2>&1); pkgs=$(echo "$out" | awk '$1 == "Remv" && $2 != p { print $2 }' p="$p"); echo ${p%:*}: $pkgs; done
The things I'm confused about are: python-idna: python-pam: python-serial:
I suspect these are recommends pulling those in.
I ran this on a fresh cloud instance. build.info
$ cat /etc/cloud/
build_name: server
serial: 20150403.2
$ py2pkgs=$(dpkg -l | grep python | grep -v python3 | awk '{print $2}')
$ for p in $py2pkgs; do
out=$(sudo apt-get remove --dry-run $p 2>&1); pkgs=$(echo "$out" | awk '$1 == "Remv" && $2 != p { print $2 }' p="$p");
echo ${p%:*}: $pkgs; done
The things I'm confused about are:
python-idna:
python-pam:
python-serial:
I suspect these are recommends pulling those in.