list of installed packages
1. How do I make a list of all the Slackware packages installed and put them in a file for printing? I can run the pkgtool program that lists packages, but I don't know how to send the output to a file.
2. I'd like to remove packages that I'm not using. How do I avoid removing something that is needed for something that I don't understand due to a dependency?