1
0
Fork 0
Scripts/Perso/package_restore.sh

16 lines
399 B
Bash
Raw Normal View History

#! /bin/bash
if [ $(id -u) -ne "0" ]; then
echo "Please execute with superuser privileges"
exit -1
fi
cp ./sources.list /etc/apt/sources.list
cp ./preferences.d/my_preferences /etc/apt/preferences.d/my_preferences
cp -r ./sources.list.d/* /etc/apt/sources.list.d
apt-get update
apt-get install dselect
dpkg --set-selections < "manual_package_save"
apt-get dselect-upgrade
apt-get remove dselect