# RPM

The RPM target builds `.rpm` files, which is the standard package format for Red Hat-based Linux distributions such as [Fedora](https://fedoraproject.org/) and [Red Hat Enterprise Linux](https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux) (RHEL).

## Requirements

You can only build the RPM target on Linux machines with the `rpm` or `rpm-build` packages installed.

On Fedora you can do something like this:

```shell
sudo dnf install rpm-build
```

While on Debian or Ubuntu you'll need to do this:

```shell
sudo apt-get install rpm
```

## Installation

```shell
npm install --save-dev @electron-forge/maker-rpm
```

## Usage

To use `@electron-forge/maker-rpm`, add it to the `makers` array in your [Forge configuration](/config/configuration.md):

{% code title="forge.config.js" %}

```javascript
module.exports = {
  makers: [
    {
      name: '@electron-forge/maker-rpm',
      config: {
        options: {
          homepage: 'http://example.com'
        }
      }
    }
  ]
};
```

{% endcode %}

Configuration options are documented in [`MakerRpmConfig`](https://js.electronforge.io/interfaces/_electron_forge_maker_rpm.MakerRpmConfig.html).

## Debugging

For advanced debug logging for this maker, add the `DEBUG=electron-installer-redhat*` environment variable.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.electronforge.io/config/makers/rpm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
