How to check what packages were added (installed) during the installation of an application. For example, I have been installing MPV applications recently and I want to know what was installed in addition to the MPV itself. With neofetch I see that there are more by 60 packages.
And how to return to the state before installation? I tried the command -Rncs mpv but I get a message that I can not do. I would like to see how to return to exactly the same state as before installing the MPV add-ons (I had probably 805 packages at the time)
Wondering if the first command I posted above would list only the packages installed by the program, meaning that if some packages were already on the system it would not add them to the list.
Second command
sudo pacman -Rs
Should take care of it, won’t delete depencies needed by other packages.
But it is not easy to know, unless you note it somewhere or you search in the journal, how the packages were installed chronologically and which one were installed first as dependencies of others.
You could use pacseek. It will show you everything that is installed or you can look up a particular package and it will tell you it’s dependencies. If pacseek isn’t installed you have to install it.