Linux Mint(Ubuntu)でパッケージリストをバックアップする

バックアップ。

$ sudo dpkg --get-selections > /home/user/package.selections

リストア。

$ sudo dpkg --set-selections /home/user/package.selections && apt-get dselect-upgrade

 
みたいな感じ。

ここからコピペしました。
新規インストールしたUbuntuに前と同じパッケージのインストールをする方法 - ケーズメモ
 

バックアップはこんな感じでやっている。

alias backup_mint='time sudo rsync -au --delete /home/tomoki/ "/media/tomoki/Transcend/Linux Mint 18 backup/tomoki" && dpkg --get-selections > "/media/tomoki/Transcend/Linux Mint 18 backup/package.selections"'