Ask Your Question
2

How do I list and edit repositories in Fedora 25?

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

graceful gravatar image

25/Gnome

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 http://download1.rpmfusion.org/free/f... sudo dnf install --nogpgcheck http://download1.rpmfusion.org/nonfre...

I also enabled Fedy.

su -c "curl http://folkswithhats.org/fedy-installer -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?

Thanks

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
2

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

florian gravatar image

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

List installed reposoitories:

sudo dnf repolist

Activate/deactivate repositories:

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

or

  • 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
1

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

hhlp gravatar image

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

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.

Regards.,

edit flag offensive delete link more
1

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

geforce gravatar image

Try updating the repo files.

su -c 'dnf update https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 18,760 times

Last updated: Dec 05 '16