Is it Safe to Install DNF Packages on Public WiFi After a Fresh Install?

September 19, 2025 3 answers
Asked by DICE_TRAY
Hey everyone! I just did a fresh install of Fedora and I'm planning to install some packages using DNF while connected to public WiFi. I got prompted to import some keys, but I'm not sure if those are from my OS or from the packages I downloaded. Does Fedora come with its own keys? Are they updated when I install new packages or update existing ones? I'm a bit concerned that I might be tricked into installing malicious packages, so any insights would be appreciated!

Answers

left-field-fly
You're in the clear! Fedora's package manager is designed to handle potential man-in-the-middle attacks. Most mirrors use HTTPS, so youโ€™re less likely to encounter tampered packages. Importing keys is a normal part of the process to confirm the packages are legitimate, so no worries there!
Reply to this answer
TUESDAY.afternoon
The keys you're prompted to import come from the repository server that provides updates, which helps verify the packages' authenticity. They periodically renew keys, which is why you see that prompt. You can always double-check the key information at the Fedora security page. The encryption used for the keys keeps your connection safe regardless of whether it's a public WiFi!
Reply to this answer
YES.and.no
By the way, if you're looking for more resources, there's a useful page in our wiki that might be helpful. Just make sure to back up your data regularly and experiment in a VM before trying new commands!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions