Installing Packager Tools

Installing

The fedora-packager package provides tools to help you setup and work with Fedora. It will bring in everything necessary for general packaging work. fedora-review automates many tasks related to package review. Run the following:

$ sudo dnf install fedora-packager fedora-review

Configuration

SSH key

You also must have an ssh key configured in the Fedora Accounts System to be able to make changes to any package, including your own. fedpkg will expect the correct ssh key to be available in your keyring. See wiki page Cryptography: OpenSSH for more information.

Mock

To be able to test the build procedure in a clean chroot with Mock, you need to configure your account to be a member of the mock group:

$ sudo usermod -a -G mock <your username>

Acquiring Kerberos ticket

Koji uses Kerberos for authentication. To acquire valid Kerberos ticket, do:

$ fkinit -u <your_fas_id>

Kerberos tickets have a set expiration time, so you will frequently have to renew it with kinit -R before it expires or acquire a new one.

Alternatively, if you are using Fedora Workstation and don’t have 2FA enabled on your Fedora account, you may add it through GNOME Online Accounts.

See Infrastructure/Kerberos for more information about the Fedora Kerberos setup.