My final goal is a way to register a bunch of local files as a package in the local RPM database. This is what I've done so far:
I build an RPM package from existing files using
rpmbuild, then use
rpm --justdb -i file.rpm to register the built package in the local RPM database. Files are already on their places in the system, so there is no need to copy them over from the RPM file (so I use
rpm -V command yields no errors.
As can be seen, I never use the files which are stored in the RPM file I've built. These files are really, really big (a few Gigabytes). So now I want to save some extra hours which are spent on compressing my huge files into the RPM package.
So I would end up with building an RPM package which has the correct metadata in it (file checksums, etc), but no real files! Can I do that?
Or maybe there is a better way to achieve my initial goal?