Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created May 3, 2013 00:57
Show Gist options
  • Select an option

  • Save hub-cap/5506552 to your computer and use it in GitHub Desktop.

Select an option

Save hub-cap/5506552 to your computer and use it in GitHub Desktop.
for i in accountsservice\
acpid\
apport\
apport-symptoms\
apt-transport-https\
apt-xapian-index\
aptitude\
at\
bash-completion\
bc\
bind9-host\
...........
do
if [ -n "$(apt-get -y --dry-run purge $i |grep cloud-init)" ] ; then echo $i ; fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment