When installing packages via yum, with repository additions, on CentOS it is possible to get a warning stating a various package is not signed. There are numerous reasons a package may not be signed so verify the source of the package is legit and if so move forward using the below command.
Update RPM Packages Via yum Without Requiring Signatures:
- yum update --nogpgcheck package_name
I received the below error when attempting to update a CentOS Linux server via yum that had not been updated in awhile. The server had numerous non standard yum repositories which made it a likely candidate to receive a package not signed warning as the one below.
Error: Package pgdg-centos-8.3-6.noarch.rpm is not signed
These warnings will stop your entire yum update process so what I like to do is verify the package validity and then update that one package to make sure it is the only warning provided by yum. In my case this was done using the below command.
Update PGDG Repo Via yum Without Requiring Package To Be Signed:
- yum update --nogpgcheck pgdg-centos
After this package was installed correctly I moved forward with the yum update to the entire system without issues related to yum warnings.