apt-get

When I install a program via apt-get, and it installs other support
packages along with it, and then I choose to remove this program AND
the packages that came with it. Is there anyway to automate the
removal of this program and its packages instead of removing the
packages by hand typing them in one by one? Or if I choose to remove
this program at a later date and close my xterm, I forget what came
with it.