-1

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

qwerty
  • 85
  • 2
  • 6

1 Answers1

0

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.

msuchy
  • 5,162
  • 1
  • 14
  • 26
  • Thanks for the answer. Any idea why state files are put under %ghost directory and not as a normal file? Would it create any other consequences if a file is unmarked as %ghost? Thanks!! – qwerty Dec 04 '21 at 04:52
  • If you package state file what would you put in? PID of the process? That it is running or failed? Packager cannot know it. And during the upgrade process rpm would overwrite the real status. You do not want it. – msuchy Dec 06 '21 at 11:10
  • It contains a value. And a command called save is used to save that value in state file. And load is used to load the value from the state file. – qwerty Dec 07 '21 at 12:05
  • Here since file is a ghost file, save and load commands are not working. So, is it suggested to unmark the file as %ghost? – qwerty Dec 07 '21 at 12:06