--set-selections Set package selections using file read from stdin. This file should be in the format 'package state', where state is one of install, hold, deinstall or purge. Blank lines and comment lines beginning with '#' are also permitted.
sed -Ei 's/(^.*$)/\1 install/' paquetes
sed -E 's/(^.*$)/\1 install/' paquetes | dpkg --set-selections