What is the minimum I have to do to create an RPM file?

前端 未结 9 1491
误落风尘
误落风尘 2020-12-04 04:20

I just want to create an RPM file to distribute my Linux binary \"foobar\", with only a couple of dependencies. It has a config file, /etc/foobar.conf and should be installe

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 05:25

    RPMs are usually built from source, not the binaries.

    You need to write the spec file that covers how to configure and compile your application; also, which files to include in your RPM.

    A quick glance at the manual shows that most of what you need is covered in Chapter 8 -- also, as most RPM-based distributions have sources available, there's literally a zillion of examples of different approaches you could look at.

提交回复
热议问题