If I add a repo, install some packages from it, them remove the repo from my source list. How can I automatically delete all packages from this repo?
Scenario
apt add repository strange_repo
apt install obscure_useless_package_I_will_forget_about
Then years later : what's strange_repo? It's useless now. Hop delete that! Wait did I install anything from it?