How to list all files installed by RPM package - LinuxConfig.org

The easiest way to locate all files installed from RPM package on your system is to check a RPM package manifest which shows all files and location for any particular RPM package. Let's say that I downloaded a telnet-server-1.2-137.1.i586.rpm RPM package from some online source and I wish to see what this package contains and what files will be installed into the system.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-list-all-files-installed-by-rpm-package

胡昂

[root@1a7e50a31197 /]# rpm -ql wget
package wget is not installed

jbradfor -> 胡昂

If the package isn’t installed yet, try "repoquery -l "