Issue the following command to get a list of all packages installed on your server

To pipe the result to a file issue the following