Скрипт обновления Debian
Создаём файл Debian_Update.sh
:
# создание файла
touch ~/Debian_Update.sh
# делаем файл исполняемым (путь заменить на свой при необходимости)
chmod +x ~/Debian_Update.sh
Содержимое файла Debian_Update.sh
:
sudo apt-get update
sudo apt-get update -y --fix-missing
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get full-upgrade
sudo apt-get -y install -f
sudo apt-get -y autoremove
sudo apt-get -y autoclean
sudo flatpak upgrade -y
sudo flatpak uninstall --unused -y
echo "Done"
Запуск скрипта:
sh ~/Debian_Update.sh