blob: b439c2c9f9118611b20f54fd266b6f04f880962a [file] [log] [blame]
Sergio Slobodrian86843702017-09-05 23:22:39 -04001#!/bin/bash
2
3pushd /home/voltha
4
5# Find all non-dpendency packages
6./sort_packages.sh
7
8# Split the package lists into those that have dependencies and those that don't
9mv deb_files{,2}
10mkdir deb_files1
11
12# Move all no-dependency packages into the phase 1 directory
13for i in `cat sortedDebs.txt`
14do
15 mv deb_files2/$i deb_files1
16done
17
18
19# Now install the phase 1 packages
20
21sudo dpkg -R -i deb_files1 2>&1 > install.log
22sudo apt-get -f install 2>&1 >> install.log
23sudo dpkg -R -i deb_files2 2>&1 >> install.log
24sudo apt-get -f install 2>&1 >> install.log
25
26rm -f sortedDebs.txt
27
28popd
29exit 0