I used to use yum to list all installed packages:
yum list installed
Now I need to list top level packages only i.e. if a package is a dependency of another, it should not be shown. GNOME's Add/Remove Software can do this but I need the output in a terminal.
I checked yum manual but I could not find a switch for that.