• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 27762
196
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic