Fedora Linux Support Community & Resources Center
  #1  
Old 27th July 2011, 06:25 PM
anishnath Offline
Registered User
 
Join Date: May 2011
Posts: 8
windows_7firefox
rpm --relocate Issue ?

rpm -qi shows wrong Relocations

--------------------------------------------------------------------------------

rpm -ihv Test-01.rpm --relocate /opt/Test01=/opt/Test02
issue command
rpm -ql Test-01
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

Any Idea why

---------- Post added at 05:25 PM ---------- Previous post was at 04:15 PM ----------

Description of problem:
rpm -qi shows wrong Relocation after installing the package using rpm --relocate option

Version-Release number of selected component (if applicable):


How reproducible:
Build a spec file using Prefix option

example rpm:- Test-01.rpm

Steps to Reproduce:
1. rpm -ihv Test-01.rpm --relocate /opt/Test01=/opt/Test02
2.
3.

Actual results:
rpm -qi Test-01
Name : Test-01 Relocations: /opt/Test01

Expected results:
rpm -qi Test-01
Name : Test-01 Relocations: /opt/Test02
Reply With Quote
  #2  
Old 27th July 2011, 06:27 PM
flyingfsck Online
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,053
linuxfirefox
Re: rpm --relocate Issue ?

Because it queries the package database, which hasn't changed. You have to rebuild the rpm for that to change.

What do you find when you look at the install place with ls or whereis - did it install to the right place?
Reply With Quote
  #3  
Old 27th July 2011, 06:30 PM
anishnath Offline
Registered User
 
Join Date: May 2011
Posts: 8
windows_7firefox
Re: rpm --relocate Issue ?

Insatll go to the right place what i specify on --relocate option
rebuild the rpm for that to change how ? do u have some example or which option i need to use

Last edited by anishnath; 27th July 2011 at 06:33 PM.
Reply With Quote
  #4  
Old 27th July 2011, 06:37 PM
flyingfsck Online
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,053
linuxfirefox
Re: rpm --relocate Issue ?

There is a package called 'rpmbuild' that you have to install and the command has the same name. You got to read the man page. You of course also need the Source RPM, not the the binary. It is quite simple, but it has been a while since I did something like that.
Reply With Quote
  #5  
Old 28th July 2011, 05:04 AM
anishnath Offline
Registered User
 
Join Date: May 2011
Posts: 8
windows_7firefox
Re: rpm --relocate Issue ?

%define version 1
%define release 20
Version: 1
Release: 1
Summary: TESt
Name: Test-01
License: Copyright Test-01
Group: Applications/System
Distribution: Test-01
Vendor: Test-01
Prefix: /opt/Test-01

%description
Test-01

%prep

%build

%install

%clean

%post


This is my spec file

using rpmbuild -bb option to create the rpm binary distribution getting the same issue Any idea

Last edited by anishnath; 28th July 2011 at 05:32 AM.
Reply With Quote
  #6  
Old 28th July 2011, 06:57 AM
flyingfsck Online
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,053
linuxfirefox
Re: rpm --relocate Issue ?

Did you change the 'prefix' path in the spec file?
Reply With Quote
  #7  
Old 28th July 2011, 08:56 AM
anishnath Offline
Registered User
 
Join Date: May 2011
Posts: 8
windows_7firefox
Re: rpm --relocate Issue ?

default Prefix: /opt/Test-01
this i'm overriding using --relocate option
rpm -ihv Test-01.rpm --relocate /opt/Test01=/opt/Test02

ls -l /opt/Test02
(3 files)

rpm -qi Test-01
[OUtput] Name : Test-01 Relocation: /opt/Test01


still it's pointing to /opt/Test01 and not changing to /opt/Test02
Reply With Quote
Reply

Tags
relocate, rpm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora 13 installation issue after fc14 is installed partioning issue navneethr Installation and Live Media 4 28th December 2010 01:06 PM
Troubled by PCSX-df. Not sure if this is a gaming issue or a security issue. Replicant10000 Gamers' Lounge 0 11th October 2009 08:08 AM
Possible compiz-fusion issue or general system issue darko28 Using Fedora 9 14th March 2008 06:31 PM
Relocate /usr to a new partition cwlaualex Using Fedora 2 27th March 2005 04:50 AM


Current GMT-time: 19:21 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat