How to get installed packages list from YUM package manager

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