rpm -qf /etc/nginx/nginx.conf

Category: Administration

rpm -qf /etc/nginx/nginx.conf

Find which RPM owns a file

Reports the package that installed /etc/nginx/nginx.conf, answering where a config file came from. The -q flag with -f queries file ownership. Useful when auditing or reverting changes to system files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.