Ask Your Question

How do I list and edit repositories in Fedora 25?

asked 2016-12-05 01:47:33 -0500

graceful gravatar image


After installing the updates on my new fc25 build, I enabled the rpm fusion repositories. Unfortunately these were from fc24. I used the following commands from an article about things to do 'after' installing fc24 instead of 25.

sudo dnf install --nogpgcheck sudo dnf install --nogpgcheck

I also enabled Fedy.

su -c "curl -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"

I need to list the repositories I have installed and remove the ones for fc24 and their gpg keys, as well as any packages that might have been installed for fc24.

How can I do this?


BTW, Gnome Software Center doesn't load properly. The afore mentioned are the only problems I've encountered so far.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2016-12-05 09:30:47 -0500

florian gravatar image

updated 2016-12-05 09:34:52 -0500

List installed reposoitories:

sudo dnf repolist

Activate/deactivate repositories:

  • use dnf config-manager, i.e. to disable: sudo dnf config-manager --set-disabled <reponame>


  • manually edit/delete repo files located in /etc/yum.repos.d/ (open them as root in your favorite text editor)

I also recommend you reading this article from Fedora Magazine, it explains pretty well the most common functions

edit flag offensive delete link more

answered 2016-12-05 11:39:42 -0500

hhlp gravatar image

updated 2016-12-05 11:42:56 -0500

for your GPG keys :

An ASCII armored public key can be added to the rpm database using --import. An imported public key is carried in a header, and keyring management is performed exactly like package management. For example, all currently imported public keys can be displayed by:

rpm -qa gpg-pubkey*

Details about a specific public key, when imported, can be displayed by querying. Here is the information about the GPG/DSA key:

rpm -qi gpg-pubkey-db42a60e <---- example obtain from the command above replace with yours

Finally, public keys can be erased after importing just like packages. Here is how to remove the GPG/DSA key

rpm -e gpg-pubkey-db42a60e <------ example obtain from the first command replace with your

/etc/pki/rpm-gpg is the standard place for packages with repository configuration to put keys they want to be imported. The dnf configuration in the package will have the path to the key in the gpgkey directive. The first time you try to install a package from a repository dnf prompts you to import the key.


edit flag offensive delete link more

answered 2016-12-05 03:43:57 -0500

geforce gravatar image

Try updating the repo files.

su -c 'dnf update$(rpm -E %fedora).noarch.rpm$(rpm -E %fedora).noarch.rpm'
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-12-05 01:47:33 -0500

Seen: 18,768 times

Last updated: Dec 05 '16