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.

** Attachment added: "list of packages and what depend on them"
   
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1427275/+attachment/4369405/+files/out

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1427275

Title:
  clean cloud images of python2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-utils/+bug/1427275/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to