On Source System:
Backup Apt sources:
On Target System:
Install packages that are on Source System:
Get a list of installed packages:
Code:
sudo dpkg --get-selections | awk '$2 ~ /^install$/ {print $1}' > installed_packages
Code:
tar czP /etc/apt > apt_backup.tgz
On Target System:
Restore Apt sources
Code:
sudo mv /etc/apt /etc/old_aptCode:
sudo tar zxvf /path/to/apt_backup.tgz
Update sources:
Code:
sudo apt-get update
Code:
cat installed_packages | xargs sudo aptitude install
No comments:
Post a Comment