Re: apt: exporting and importing list of installed packages
The problem with these instructions are the redirect rather than a pipe
and there is also a type-o.
When you set the selections on the new system you need to send the
package list to dpkg via STDIN rather than a redirect. I commented out
the bad line and replaced it with the good one.
Also, you want the apt-get argument to be dselect rather than deselect.
On the current machine:
dpkg --get-selections > my_inst_pack.txt
On the destination machine after a "base-config":
# cat my_inst_pack.txt > dpkg --set-selections
cat my_inst_pack.txt | dpkg --set-selections
# apt-get deselect-upgrade