How can I verify that packages installed with DNF are trustworthy?
Asked by
moth wings 4cm
I'm learning the basics of a Linux system and have been installing packages with commands like `dnf install tar`. How can I tell whether the packages are authentic and trustworthy rather than coming from someone impersonating the real project? Are there official repositories with signing, certifications, or other quality checks that I should look for?
Answers
If you havenโt added any third-party repositories, `dnf` is normally downloading from your distributionโs official repositories. Packages are cryptographically signed, and the package manager checks those signatures automatically before installation to confirm the package came from an authorized source and hasnโt been altered.
Reply to this answer
The repositories configured by default are maintained by your Linux distribution or its trusted upstream maintainers. Those packages go through the distributionโs normal review and build process, so theyโre generally the safest option. Be more cautious with repositories you add yourself, since youโll need to evaluate whether their maintainers are trustworthy.
Reply to this answer
Default repositories are not open upload folders where anyone can publish arbitrary packages. Theyโre operated by the distribution team and its approved infrastructure. The bigger risk is installing an RPM downloaded directly from a random website, because then youโre responsible for checking its source, signature, and integrity yourself.
Reply to this answer
Add your answer
Answers are reviewed before publication.
moth wings 4cm: That makes sense. Why arenโt community repositories such as RPM Fusion enabled by default if theyโre commonly used?