1
0
Fork 0
Scripts/Perso/package_restore.sh
2020-05-17 14:26:09 +01:00

16 lines
No EOL
399 B
Bash
Executable file

#! /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