7/27/2023 0 Comments Rhel rpm![]() First, compiling software manually preferably is done as a non-root user. I use rpm* and gpg* because it makes the number of things to remember to install much more manageable.Ī large part of success with RPM packaging understanding the software you are working with. You must have following packages installed: To install your development environment on a subscribed Red Hat Enterprise Linux (RHEL) 7 system, you need the following repositories to build your RPMs: rhel-7-server-rpms, rhel-7-server-extras-rpms, and rhel-7-server-optional-rpms. Once you have made this change, create a new gzipped tarball with the same name: vitetris-0.57.tar.gz. #INSTALL = install -oroot -groot # non-root users building the rpm won't be able to set this and the RPM build will fail. ![]() To ensure there are no errors when creating the RPM package, I remove references in the Makefile that change file permissions to root, in order to allow a non-root user to build the RPM. ![]() ![]() I will use a game called Vitetris as my example, which you can download. Note that this article is meant as a starting point, not a complete guide to RPM packaging.įor my demonstration, I chose a simple ASCII-based Tetris game, written in C, and I made slight adjustments to ensure a relatively straightforward RPM build. In this article, I will demonstrate that building an RPM with minimal knowledge and experience is possible. The concept of RPM packaging can be overwhelming for first-timers because of the impression a steep learning curve is involved.
0 Comments
Leave a Reply. |