Mailinglist Archive: opensuse-packaging (121 mails)

< Previous Next >
Re: [opensuse-packaging] macros for /opt/foo
Michael Ströder schrieb:
Are there any RPM macros one should use when packaging software
installed with a prefix /opt/foo?

Just don't package stuff in /opt please. Depending on how one looks
at it, it was either a misguided idea from the past or we can't
handle it properly. In any case nowadays installing to /opt breaks
expectations wrt rollbacks etc.
So if you want your software to be managed by rpm as proper package
you need to install it in /usr. If you can't follow the FHS
structure there but need to bundle everything in one directory use a
subdirectory of /usr/lib. Keep in mind that /usr is considered
read-only after rpm is done updating it's DB after installation. So
there are still some basic quality standards to follow for the
software.

cu
Ludwig

--
(o_ Ludwig Nussel
//\
V_/_ http://www.suse.com/
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard,
Graham Norton, HRB 21284 (AG Nürnberg)
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
References