Search code examples
rpmrpmbuildrpm-spec

Spec file: File is packed by rpm, but not getting installed in right destination


Rpm -ql is listing the file but the file is not getting installed in the right location of target machine.


Solution

  • Either:

    1. someone removed that file. In that case simple dnf reinstall your_package will fix it

    2. or the file is marked as %ghost http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html that is usually for log files. You do not want them to ship, but a package should own them.