"apt-get --auto-remove remove foo" will iiuc also remove any packages
foo dragged in that are now no longer needed.  any way to do similarly
with yum?