I wonder if he was trying to run deb-orphan. I don't use it alot but this is what it sounds like.
https://debian-administration.org/article/134/Removing_unnecessary_packages_with_deborphan