How query custom installed rpm package
Generally if i need to query rpm based package I use following commands
rpm -qi package
rpm -ql package # to get installed binaries of package
rpm -qf path to binary # to get related package name of the path
All above mentioned commands work very well with all the installed packages, but problem raised when I have installed package in custom location using following commands
rpm –prefix=/opt -ivh package
rpm -relocate=/opt -ivh package
So when I used above mentioned commands package got installed properly but I was not able to use following rpm query commands
rpm -qi package
rpm -ql package # to get installed binaries of package
rpm -qf path to binary # to get related package name of the path
Is there a way I can query custom installed rpm package?