WTF? Can't you people read? The url I have given has the exact command that will give you the needed output but you nutheads just ignore it and ask how to do the same stuff.
In case you people are 'url clicking challenged', here's the command to create the files
then use this command to restore them
note the backticks.
In case you people are 'url clicking challenged', here's the command to create the files
Code:
dpkg- l | awk '{print $2}' > installed_packages.txt
Code:
apt-get install `cat installed_packages.txt`