list all the installed packages in a file