Get installed packages list

Export and Import packages list

Export
dpkg --get-selections

Import
dpkt --set-selections