How to remove an imported gpg-key from RPM

Importing a gpg-key into the RPM database is simple but removing one not so much. Here are the steps to find the gpg-key you are looking for and remove it.

Step 1: find all imported gpg-keys and their owners

Open a terminal and issue the following command:

This will show you all the gpg-keys that were imported into the RPM database and who they belong to. For example, if you have a box with Fedora, the Google Chrome repo, the Adobe Flash repo, and the RPMfusion free/nonfree repo’s installed then you will see something like this:

Step 2 – delete the gpg-key

Delete the gpg-key with:

For example if you want to delete the gpg-key from the Adobe Flash repo then you would use the following command:


For a discussion about retaining or deleting old gpg-keys see this post on the fedora-devel mailinglist.

How to disable delta RPMs on Fedora 20

If you maintain a local mirror of Fedora or have fast WAN access to a Fedora mirror near you then it is quite inefficient to let yum download the delta RPMs and then take ages to rebuild them. It’s much faster to just download the full update RPMs instead. Here’s how you disable delta RPMs:

Open /etc/yum.conf and in the [main] section add deltarpm=0:

Note that this is a global setting. So none of your repositories will use delta RPMs anymore.

How to disable delta RPMS for individual repositories

If you want to disable delta RPMS for individual repositories then here’s a neat trick. In /etc/yum.repos.d/your.repo add the following setting:

From man yum.conf:

deltarpm_percentage When the relative size of delta vs pkg is larger than this, delta is not used. Default value is 75 (Deltas must be at least 25% smaller than the pkg). Use `0′ to turn off delta rpm processing. Local repositories (with file://baseurl) have delta rpms turned off by default.