To check to see if there any orphaned packages(packages which are no longer needed) installed you can use:
pamac list -o