LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rpm -qi shows wrong Relocations (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-qi-shows-wrong-relocations-893983/)

anish2good 07-27-2011 01:28 AM

rpm -qi shows wrong Relocations
 
rpm -ihv Test-01.rpm --relocate /opt/Test01=/opt/Test02
while issue
rpm -ql it shows the file from /opt/Test02 that is correct
but when i query
rpm -qi Test-01
Name : Test-01 Relocations: /opt/Test01

it shows the old Relocation

Aby Idea why

kbp 07-28-2011 06:31 PM

Quote:

rpm -qi Test-01
Name : Test-01 Relocations: /opt/Test01
This shows what can be relocated, not what you did relocate.

anish2good 08-06-2011 12:37 PM

Quote:

Originally Posted by kbp (Post 4428054)
This shows what can be relocated, not what you did relocate.

i have a shell script that will install the product in the defualt location but at the same time the customer can change the defualt installtion directory,if the customer want's where is my product installed using rpm -qi option it will shows the old path which is wrong , then how could he find where i have installed the package, Any idea, which rpm option can use while installing the package that will update the relocation as well

kbp 08-06-2011 07:39 PM

The output of 'rpm -ql <package_name>' should give the installed locations


All times are GMT -5. The time now is 01:58 PM.