Binary package “deborphan” in ubuntu lunar

program that can find unused packages, e.g. libraries

 deborphan finds "orphaned" packages on your system. It determines which
 packages have no other packages depending on their installation and shows
 you a list of these packages. It is most useful when finding libraries,
 but it can be used on packages in all sections.