Update-Skript für Debian/Ubuntu
Verfasst: 20.05.2012, 12:38
Zum Updaten benutze ich das Skript unten und es funktioniert nicht schlecht, aber
unter KUbuntu wird acroread meist deinstalliert, mit um 200 anderen Paketen, so das ich nachher acroread erneut installieren muss
Kann ich das durch Optimieren vom Skript oder sonstwie beseitigen?
unter KUbuntu wird acroread meist deinstalliert, mit um 200 anderen Paketen, so das ich nachher acroread erneut installieren muss
Kann ich das durch Optimieren vom Skript oder sonstwie beseitigen?
Code: Alles auswählen
#!/bin/bash
# If the updating via this script (all long lines below) fails,
# try System Settings -> Software -> Update
# or synaptic or ...
export http_proxy=http://192.168.19.19:3129
export ftp_proxy=http://192.168.19.19:3129
export https_proxy=http://192.168.19.19:3129
#This command will continue to install packages that may have been broken during download
#or if your download unexpectedly terminated or if you have had a power-failure.
dpkg --configure -a
apt-file update
aptitude update
apt-get update --fix-missing
apt-get check
# helpful for fixing broken packages
apt-get -f install
aptitude install
#aptitude keep-all
#apt-get autoremove
# If some necessary packages are not available you can use this to remove the broken one.
#apt-get -f remove
# Updates: aptitude often wants to remove hundreds of packages, so it's usually better to use only the apt-get commands.
#aptitude safe-upgrade
#aptitude full-upgrade
apt-get upgrade
apt-get dist-upgrade
#apt-get clean
#do-release-upgrade
aptitude remove nvidia-installer-cleanup
# This commands will tell you what Version of Ubuntu you are using.
# It will help validate and document that the updates/upgrades before the last boot have worked properly.
echo "Operating System:"
lsb_release -a
echo
echo "Kernel Version: "
uname -a
echo