• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

RPM install

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to install the RPM at /usr/local directory. Is there a command to install at a specified location

Thanks in advance
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mary,

Have you tried the --relocate option? You should be able to sub the /usr/local for the original location. Something like:
 
Saloon Keeper
Posts: 28392
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One thing to remember is that RPMs are designed specifically to be able to splatter files all over your filesystem. And to find them later for updating, repair and/or removal. A tarball install to /usr/local was the more traditional approach, but adding dozens of /usr/local/packagename/bin's to the PATH - not to mention MAN base directories, etc-file maintenance, and such just got to be too much.

However, there are times when people don't like the default places where RPMs want to put things, and for the most part, that's fine. At least as long as the RPM author made sure that relocatability rules were obeyed.

The --relocate option only relocates files in the path indicated. Run "rpm -qilp packagename.rpm" on your package and you'll see what files (and what paths) will be installed. If you have other files besides those in the /usr/bin directory that also need relocation, you'll need additional --relocate's for them as well.

The RPM man page doesn't say if the option '--relocate /=/usr/local' works, but I expect it would.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic