I cant install any package from my very own repo. I have to set up kind of a CentOS7-Mirror-Repo enriched by own packages.
For security and other reasons the client should be only allowed to install exclusiveley and secure from this repo.
The .repo looks like this (the important part)
Code: Select all
gpgcheck=1
repo_gpgcheck=1
gpgkey=http://$repourl/keys/rpm-signing-pubkey.asc
sslverify=1
Also I resigned the repomd.xml and created new repomd.xml.asc
The rpm-signing-pubkey.asc is stored in /keys
I can download this via curl.
Local installing via yum localinstall is working.
But
This fails with the [Errno -1] Package does not match intended downloadDownloading packages:
wget-1.14-15.el7_4.1.x86_64.rp FAILED
http://repo.local/install/x86_64/wget-1 ... x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=local clean metadata
Trying other mirror.
Error downloading packages:
wget-1.14-15.el7_4.1.x86_64: [Errno 256] No more mirrors to try.
I've tried the hints I found
Disabling mirrorlist
cleaning yum
cleaning yum cache
Nothing works.
The downloaded file is ok
Code: Select all
rpm -vK nano-2.3.1-10.el7.x86_64.rpm
nano-2.3.1-10.el7.x86_64.rpm:
Header V3 RSA/SHA256 Signature, key ID c9623a40: NOKEY
Header SHA1 digest: OK (b4a8577b1e26738e571f0796bf4c1ddb726382dd)
V3 RSA/SHA256 Signature, key ID c9623a40: NOKEY
MD5 digest: OK (97166c500e0f4c362859247540985b69)