Distributing binary applications across linux distros

前端 未结 5 725
天命终不由人
天命终不由人 2021-02-05 23:24

I\'ve written an application which as of yet is not open source and I\'d like to distribute the executable across various linux distros. What\'s the best way to do this, I\'ve l

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 00:02

    That's what .rpm and .deb files do BUT you have to be sure that the installee distro has the ability to deal with the .rpm and .deb files. If you want something that's sure to run across multiple distros, where you can't be sure that they will have the right package manager, then you pretty much have to resort to the shell script method. I would advise, if you can get away with it, building your binary for both .rpm and .deb - this way, you get most of the distros covered, and you allow users to install in a way they are comfortable and familiar with, and you don't have to try to roll your own installer / uninstaller shell scripts.

提交回复
热议问题