Results 1 to 6 of 6

Thread: Installation into an alternative target directory

  1. #1

    Question Installation into an alternative target directory

    How can it be achieved that the installation of a software package will not be performed into a well-known directory like "/usr/local"?
    Would you like to select a special test or demonstration directory for the installation of any software packages?

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,760

    Default Re: Installation into an alternative target directory

    Well the packages are set to install in a given directory. But if you compile from source you can set things to any place you want most often ~/bin. You would need to modify the rpm file to install for standard binaries

  3. #3

    Question Re: Installation into an alternative target directory

    Quote Originally Posted by gogalthorp View Post
    Well the packages are set to install in a given directory.
    • How are the chances that installation commands from RPM packages can be redirected to an alternative target directory?
    • How good do relocatable packages work so far?
    • When will the parameter "--prefix" be also supported by other software management tools like "zypper"?


    But if you compile from source you can set things to any place you want most often ~/bin.
    I am looking for further possibilities to avoid or reduce the efforts for building selected software once more just to choose a different folder for the corresponding installation at the end.

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,760

    Default Re: Installation into an alternative target directory

    Quote Originally Posted by elfring View Post
    • How are the chances that installation commands from RPM packages can be redirected to an alternative target directory?
    • How good do relocatable packages work so far?
    • When will the parameter "--prefix" be also supported by other software management tools like "zypper"?



    I am looking for further possibilities to avoid or reduce the efforts for building selected software once more just to choose a different folder for the corresponding installation at the end.
    Look at man RPM for details
    Depends on the program and how tight it is set to be installed in a give local
    Ask the developers. None hang here

  5. #5

    Question Re: Installation into an alternative target directory

    Quote Originally Posted by gogalthorp View Post
    Depends on the program and how tight it is set to be installed in a give local
    Would you like to share any more ideas around the topic "Making a Relocatable Package"?

    Code:
    elfring@Sonne:~> rpm --install --prefix ~/Probe http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Factory/x86_64/Mesa-libGL1-11.1.1-538.1.x86_64.rpm
    error: package Mesa-libGL1 is not relocatable

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,979
    Blog Entries
    14

    Default Re: Installation into an alternative target directory

    After a quick read: If you actually need this for packages, use OBS. Generally speaking the spec file of an rpm is the place where paths etc. are configured.
    But, since rpms are archives, you could also extract the content and move it where ever you want. Messy stuff though if config files are included.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Tags for this Thread

Posting Permissions

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