I have plenty of softwares installed on my Linux machine (RHEL) and some were installed with yum, some other by downloading a rpm and executed it from gnome file manager. I also have few softwares archives (zip or tar) I just unzipped in the /opt directory.
My question is: is it possible to know by which method I installed e.g the chrome browser which is located in /opt/google/ folder?
The answer can be different by Linux distro, but I am more interested for these distros: RHEL, CentOS, Fedora (sorted by importance).
The answer is enough for me if I can know: it was installed by yum, rpm or zip.
I checked the history (for both my own user and for root) but there is not traces there anymore.