RPM-based distros (redhat, etc.)
# List all files from q package
rpm -ql <package>
# Where did file come from
rpm -qf <path> # List all files from q package
rpm -ql <package>
# Where did file come from
rpm -qf <path>Also, man! Do I love the Arch wiki: