Skip to content

Instantly share code, notes, and snippets.

@ndowens
Forked from fuzzmz/empty_rpm.md
Created January 14, 2024 09:12
Show Gist options
  • Save ndowens/2c5f7d8dbc79fc2a24f03a0550a7f4b7 to your computer and use it in GitHub Desktop.
Save ndowens/2c5f7d8dbc79fc2a24f03a0550a7f4b7 to your computer and use it in GitHub Desktop.
How to build an empty .rpm file

How to create an empty .rpm file

First create a package_name.spec file with the following content:

Summary: Summary here
Name: package_name
Version: 0
Release: 0
License: Public
Group: Applications/System
Requires: libXrandr.i686,gtk2.i686,libXtst.i686
%description
Package description here
%files

After this file is created simply run # rpmbuild -bb package_name.spec to create the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment