For Suppose, I have installed a package having files file1, file2 and file3. After installation, I removed the file "file3".
But "rpm -qf file3" is giving the package name, even file3 was not there. And also "rpm -ql package" is also displaying all 3 files.
How can i update rpm database about the package to display only available files i.e. file1 and file2 when queried with "rpm -ql".
I want a shell script to update rpm database so that I can get only file1 and file2 when queried with "rpm -ql".