Open alexandrovas opened 4 months ago
Hi @alexandrovas thanks for opening an issue. I'm unfamiliar with "ghost" packages you describe, can you tell me more about the origin? Are there specific yum packages you can proxy that contain this information, or are these packages you are building and storing in hosted repositories.
I'm going to mark this with the enhancement label, as it may not be provided with our current yum integration as of yet.
Hi @nblair! Thanks for your reaction.
According to rpm spec:
There are times when a file should be owned by the package but not installed - log files and state files are good examples of cases you might desire this to happen. The way to achieve this, is to use the %ghost directive. By adding this directive to the line containing a file, RPM will know about the ghosted file, but will not add it to the package.
Regarding your question:
Are there specific yum packages you can proxy that contain this information, or are these packages you are building and storing in hosted repositories.
This is copy of package from upstream repo (EPEL is this case). The specified package is just an example of the problem. There can be many packages with such a problem, if you take upstream of any RHEL-like repository.
We are store copies of all packages needed for build our custom packages in our Nexus yum repo.
Since this directive is part of the RPM specification, in my opinion it looks more like a bug than an enhancement.
Hello!
Nexus generates incorrect metadata for rpm-packages with
ghost
files.In native repodata/*-primary.xml.gz (created via createrepo):
Yum metadata in Nexus (same package ssmtp):
As can you see Nexus generated metadata does not contain block:
The absence of this data breaks the
yum provides
feature.For local repo created via
createrepo
cli:For repo in Nexus with same packages:
Nexus version: OSS 3.54.1-01