View list of installed packages in Ubuntu

This will show you how to get a list of installed packages for an Ubuntu system.

To view the packages

dpkg --get-selections > installed-software

To then have these packages installed

dpkg --set-selections < installed-software
dselect

References

Ubuntu Forums