Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.



Published on

Overview of RPM packaging in Fedora project. How to get started with RPM packaging and how RPMs are built for Fedora and what tools are used for the process.

Published in: Software
  • Be the first to comment


  1. 1. RPM packaging in Fedora Lalatendu Mohanty Senior Software Engineer @ Red Hat License statement goes here. See for acceptable licenses. Bringing It All Together
  2. 2. Today's Topics 1. Why? 2. What? Koji Distribution git Bodhi COPR 3. How to get involved? 1. Learn RPM Packaging 2. Fedora guidelines
  3. 3. Why?
  4. 4. Source Install Source Install Copy source code Install required dependencies (its repeating the same steps) Compile (, config, make, make install) if required Copy the executable and configuration files to required location. Steps for upgrade and uninstall will be similar and complex. High possibility for human error.
  5. 5. Packaging The package is typically provided as compiled code, with additional meta-information such as a package description, package version, or "dependencies". Automates the process of installing, upgrading, configuring, and removing software packages.
  6. 6. Package VS Source install Huge improvement of user experience for install/update/uninstall User does not have to think about dependency resolution. Helps maintaining it for different versions of distributions and for different distributions. Without package management it would be almost impossible to create a GNU/Linux distribution.
  7. 7. RPM stands for RPM Package Manager Red Hat Enterprise Linux, the Fedora Project, SUSE Linux Enterprise, openSUSE, CentOS, Meego, Mageia and many others. RPM
  8. 8. RPM Building in Fedora
  9. 9. Building a RPM Source code as tar ball A rpm spec file rpmbuild command
  10. 10. Rebuilding a Package Prepare your system for RPM Packaging # dnf install @development-tools fedora-packager rpmdevtools # rpmdev-setuptree Lets get the source RPM dnf download --source git Extract the source RPM rpm2cpio git-2.4.3-6.fc22.src.rpm | cpio -idmv Install the build dependencies dnf builddep <package name> Rpmbuild -ba <specfile> e.g. #rpmbuild -ba git.spec
  11. 11. An example RPM Spec file # rpmdev-newspec dummy # vi dummy.spec
  12. 12. Koji It builds RPM packages. The installation of Koji used for Fedora is at : It uses mock internally to build RPMs.
  13. 13. Distribution git repositories
  14. 14. Bodhi It is a web based work flow to facilitate the process of publishing package updates for Fedora. All Fedora package updates goes through Bodhi.
  15. 15. RPM Work flow
  16. 16. COPR Dnf/yum copr enable user/project Build RPMs without going through the Fedora package review process Build for ELs and different Fedora versions. Can be accessible anywhere from internet.
  17. 17. How To Get Involved?
  18. 18. Learn RPM Packaging Start with rebuilding some existing packages on your laptop/workstation package
  19. 19. Contributing to Fedora Co-maintain packages he_packager_group Add new packages
  20. 20. New Package Review Process
  21. 21. Fedora Packaging Guildelines
  22. 22. RPM packaging is a very good method of contributing to Fedora. Knowing RPM packaging improves your understanding of operating system. It is good to have skill for developers/testers/administrators. Summary
  23. 23. Questions? License statement goes here. See for acceptable licenses. Contact: @lalatenduM