A search of the PCLinuxOS Forum showed me a way to pipe a listing of installed package names to a text file. From the command-line as root:
rpm -qa --qf '%10{size}\t%{name}\n' | sort -k1,1n > installed.txt
This works very nicely, listing packages from smallest to largest in alphabetical order. However, the package names are listed in short form. I would like to list packages by their full filenames as they were installed. Is there a way to do this? If so, how can I use the command-line to modify the text file so that package names are each separated by a space, rather than each being listed on separate lines?
I have a file with some of these commands, with an explanation as to their use, as well as instructions for creating a script to reinstall all your current applications, using apt-get, in case of application breakage from file system corruption, or for use when installing to another drive, or another computer, to duplicate the same packages you had on the first installation.
You might find it interesting, so here's a
copy/paste of my "
package.list.commands", with a bit of color for clarity.

========================================================
[For a simple list of installed packages]
rpm -qa --qf '%{NAME}\n' | sort > installed.txtor
[For a list of installed packages to be used with apt-get to reinstall all packages]
rpm -qa --qf ' %{NAME}' > reinstall.txt ## Add the following lines at the beginning of reinstall.txt
#! /bin/bash
apt-get update
apt-get install --reinstall## Do not put a linefeed at the end of the 3rd line so the file now looks like this:
#! /bin/bash
apt-get update
apt-get install --reinstall package1 package2 package3 ........ packageX## End the file with a new line, then save.
## Make the script executable:
chmod +x reinstall.txt## Rename the file, to drop the .txt extension.
## Then run it, as root, from the directory where the script is saved:
[root@localhost <directory>]# ./reinstall[To see the package list, with package sizes...]
rpm -qa --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n > SW_List.txt[To see the package list, full name, with package sizes...]
rpm -qa --qf '%10{size}\t%{name}-%{version}-%{release}\n' |sort -k1,1n > installed.txt[To see the installed package list, with version included, sorted alphabetically...]
rpm -qa |sort > pkg-version.txt