06-28-2021, 05:49 AM
#How to get package list from one PC and install that on another PC? [duplicate]
First, make sure that /etc/apt/sources.list and /etc/apt/sources.list.d on PC2 are equal to those on PC1.
Then, on PC1, do
dpkg --get-selections > installed-packages
apt-key exportall > repo-keys
Transfer the files installed-packages and repo-keys to PC2, and do
If you don't have any packages installed from PPA's you can skip the repo-keys commands.
Disclaimer: this used to work a few years ago, I haven't had the need to try it recently.
First, make sure that /etc/apt/sources.list and /etc/apt/sources.list.d on PC2 are equal to those on PC1.
Then, on PC1, do
dpkg --get-selections > installed-packages
apt-key exportall > repo-keys
Transfer the files installed-packages and repo-keys to PC2, and do
Quote:sudo apt-get install dselect
sudo apt-key add repo-keys
sudo dpkg --set-selections < installed-packages
sudo apt-get dselect-upgrade -y
If you don't have any packages installed from PPA's you can skip the repo-keys commands.
Disclaimer: this used to work a few years ago, I haven't had the need to try it recently.