From the course: Building, Maintaining, and Distributing RPM Packages
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Build a binary package to distribute regular files
From the course: Building, Maintaining, and Distributing RPM Packages
Build a binary package to distribute regular files
- [Instructor] In order to put our files into place in the rpmbuild directory, we'll need to create a tarfile that wraps them all up. This file needs to have the same name as was specified in the SOURCE directive of the SPEC file. And the directory it extracts need to match as well. Here I have the directory tree I want to include, and it's named landon-assets 1.0.0 which lines up with my package and version. I'll create a tarfile with tar -czvf. The name of the tarfile and the directory to create it from. And then I'll move that into ~/rpmbuild/SOURCES/. I'll make sure my SPEC file is in the correct place, too. Inside rpmbuild/SPECS as well. Now we're ready to build. Before we do that, it's a good idea to check things out, and we can do that with rpmlint and the path to the SPEC file. Looks pretty good. I have a warning here that my source URL doesn't work, but I know that's the case. It's a good idea to run rpmlint…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Creating a binary package1m 41s
-
(Locked)
Write a spec file to distribute regular files7m 58s
-
(Locked)
Build a binary package to distribute regular files2m 51s
-
(Locked)
Write a spec file to compile and distribute executables5m 39s
-
(Locked)
Build a binary package to distribute executables1m 44s
-
(Locked)
Building for different architectures2m 8s
-
(Locked)
-
-
-
-