opensim-tools
/lib/upgrade-spectacled-owl |
@@ -14,13 +14,13 @@ |
dialog --yesno "By selecting yes here, the Spectacled Owl will install or remove packages essential for OpenSim from the virtual machine. You should say yes here unless you have made major changes to the Spectacled Owl machine. Would you like to process the list of packages to install or remove?" 10 70 |
if [ $? == "0" ]; then |
# Update repositories |
aptitude update |
aptitude upgrade |
aptitude -y update |
aptitude -y upgrade |
# Remove packages |
cat lib/uninstall-packages.txt | while read p; do |
PACKAGE=`dpkg -l | grep "$p" | head -1 | awk '{ print $2 }'` |
if [ "$PACKAGE" == "$p" ]; then |
aptitude purge $p |
aptitude -y purge $p |
fi |
done |
# Install packages |
@@ -27,8 +27,8 @@ |
cat lib/install-packages.txt | while read i; do |
PACKAGE=`dpkg -l | grep "$i" | head -1 | awk '{ print $2 }'` |
if [ "$PACKAGE" != "$i" ]; then |
aptitude purge $i |
aptitude install $i |
aptitude -y purge $i |
aptitude -y install $i |
fi |
done |
fi |