Best approach to writing a generic installer for a Linux application?

后端 未结 5 824
走了就别回头了
走了就别回头了 2021-02-03 12:24

We have a Linux server application that is comprised of a number of open-source tools as well as programs we\'ve written ourselves. Ideally we would like to be able to install t

5条回答
  •  暖寄归人
    2021-02-03 13:15

    Instead of the installer approach, I think a better way than having a single script that does it at install time is to have a build system which generates .deb or .rpm files suitable for installation on each system you have to support.

    A poor man's way of going at that might be to use checkinstall, which creates packages from the files installed via 'make install'. So you'd build your app on each system and have the package magically created in the distro's native format.

提交回复
热议问题