I am using CentOS 7. I installed okular, which is a PDF viewer, with the command:
sudo yum install okular
As you can see in the picture below, it installed 37 dependent packages to install okular.
But I wasn't satisfied with the features of the application and I decided to remove it. The problem is that if I remove it with the command:
sudo yum autoremove okular
It only removes four dependent packages.
And if I remove it with the command:
sudo yum remove okular
It removes only one package which is okular.x86_64.
Now, my question is that is there a way to remove all 37 installed packages with a command or do I have to remove all of them one by one?