Find the answer to your Linux question:
Results 1 to 6 of 6
hi all how to specify the $HOME path in spec file, to install the files in $HOME.. is it possible.. if yes, please tell me the way.. am very glad ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247

    install rpm in $HOME path

    hi all
    how to specify the $HOME path in spec file,
    to install the files in $HOME..

    is it possible..
    if yes,
    please tell me the way..
    am very glad to send an appropriate spec file..
    coz, i read some spec file nobudy given the path of $HOME...

    please help me

    thank you in advance
    "Relationships are built on trust and communication"

  2. #2
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Toronto
    Posts
    127
    Are you trying to install an rpm in your home directory (is that what you really want) or is it that you writing a spec file by yourself and want to know how you can refer to user's home directory ?

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by kevkim55 View Post
    is it that you writing a spec file by yourself and want to know how you can refer to user's home directory ?
    yes exactly..

    can yopu help me

    thank you inadvance
    "Relationships are built on trust and communication"

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You can use the --root flag if you want to install an rpm to a different prefix. More info is in the rpm manual.

  5. #5
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Remember that the rpm database is only accessable by root, so this might not be a viable method.

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Quote Originally Posted by bigtomrodney View Post
    Remember that the rpm database is only accessable by root, so this might not be a viable method.
    You are right. One thing I forgot to mention is that many rpms cannot be installed into a different prefix even using the --root flag, because they are marked that way in the spec files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...