LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2011, 02:28 AM   #1
anish2good
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Rep: Reputation: Disabled
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

Last edited by anish2good; 07-27-2011 at 02:35 AM.
 
Old 07-28-2011, 07:31 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Quote:
rpm -qi Test-01
Name : Test-01 Relocations: /opt/Test01
This shows what can be relocated, not what you did relocate.
 
1 members found this post helpful.
Old 08-06-2011, 01:37 PM   #3
anish2good
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kbp View Post
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
 
Old 08-06-2011, 08:39 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
The output of 'rpm -ql <package_name>' should give the installed locations
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uptime cmd shows 5 users but thats wrong thoron! Slackware 7 02-21-2012 03:58 PM
df shows wrong usage on mounted ipod nass Slackware 5 07-07-2007 05:36 AM
Clock Always Shows Wrong Timezone jonwatson Fedora 2 11-07-2004 02:46 PM
rpm -q not shows installed rpm mla Linux - Software 4 10-31-2004 03:49 PM
df command shows wrong information vdemuth Mandriva 3 06-04-2004 03:30 AM


All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration