[PR #2] Alpha support for generating RPM packages #163

Closed
opened 2026-01-29 16:30:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/quamotion/dotnet-packaging/pull/2

State: closed
Merged: Yes


This PR adds preliminary support for generating RPM packages for a .NET Core project.

Included is:

  • Support for generating a cpio file (which is the format used for the RPM payload) based on the output of dotnet publish. The Linux file modes (rwx for the various groups) are determined based on the file types, even on Windows.
  • Support for reading and writing .rpm files, including the signature, header (metadata) and payload
  • Support for generating a .rpm package for a ASP.NET Core using the dotnet rpm command

This has been tested by creating a RPM package for the demo ASP.NET project included in this repository, on Windows, and installing that package on CentOS 7.

Because RPM files use xz compression, lzma is a requirement. lzma.dll is included for x64 Windows; for other OS'es, it is assumed that lzma is already present or installed via the package manager.

**Original Pull Request:** https://github.com/quamotion/dotnet-packaging/pull/2 **State:** closed **Merged:** Yes --- This PR adds preliminary support for generating RPM packages for a .NET Core project. Included is: - Support for generating a `cpio` file (which is the format used for the RPM payload) based on the output of `dotnet publish`. The Linux file modes (rwx for the various groups) are determined based on the file types, even on Windows. - Support for reading and writing `.rpm` files, including the signature, header (metadata) and payload - Support for generating a `.rpm` package for a ASP.NET Core using the `dotnet rpm` command This has been tested by creating a RPM package for the demo ASP.NET project included in this repository, on Windows, and installing that package on CentOS 7. Because RPM files use `xz` compression, `lzma` is a requirement. `lzma.dll` is included for x64 Windows; for other OS'es, it is assumed that `lzma` is already present or installed via the package manager.
claunia added the pull-request label 2026-01-29 16:30:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#163