PDA

View Full Version : Change installation directory of package



sysengPS
23-Dec-2014, 19:20
Great software, really enjoying getting a working build together. However, I'm unable to adjust the installation directory of software. I want to install tomcat 8 into /opt/tomcat, but it installs in a directory I can't think of right now :). I suppose I can create a symlink after the fact, but would like to have a clean system. Is this possible?
Thanks

ab
23-Dec-2014, 19:40
You should be able to specify a directory when dropping files in there,
and then, if an archive, it should auto-extract to that directory
structure. I'm pretty sure I've done this in the past with archives, and
here's a screenshot of a single file being placed that way (which
definitely works):

http://paste.opensuse.org/97521473

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

sysengPS
23-Dec-2014, 20:33
I was hoping to install from a repository, not expand a tar, but I'll take it. Thanks.

ab
23-Dec-2014, 20:53
Ah.... I see. I'm sure you could probably still do this somehow, but it'd
be a bit more custom, and may have drawbacks you do not want. For
example, perhaps have a script on startup pull down the package, or put
the RPM in a directory and then have a script install it. Neither is perfect.

If you have an online repo on something like the Open Build Service (OBS)
you should be able to point to it and pull in packages directly, though.
Is that something you have already tried? The UI where you choose which
SUSE/SLES software to install has an 'Add Repository' button or something,
and as long as the SUSE Studio servers can reach it I think you can use
it. If that's an option, you just need to be sure your package puts
things in the correct location by default.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

jetchisel
23-Dec-2014, 22:56
sysengPS;2684846 Wrote:
> I was hoping to install from a repository, not expand a tar, but I'll
> take it. Thanks.
>
>
> --
> sysengPS
> ------------------------------------------------------------------------
> sysengPS's Profile: http://forums.suse.com/member.php?userid=5784
> View this thread: http://forums.suse.com/showthread.php?t=5770


Hi,

You need to custom built your own package and edit the specfile if
you're up to it and build it locally

Well, if you have an OBS account that would be easy.


--
*-"Unfortunately time is always against us"-* -- * [Morpheus]*
------------------------------------------------------------------------
jetchisel's Profile: http://forums.opensuse.org/member.php?userid=22805
View this thread: http://forums.opensuse.org/showthread.php?t=503774