How to get installed packages list from YUM package manager

Please  use this command
[crayon-6acac09b5b2b4405864329/]
This command will save  package list to a txt file.