Skip to content

Commit 1e7229e

Browse files
committed
optimize apt calls
1 parent a5fd0c4 commit 1e7229e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

install_rubikpi3.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ wget -qO - https://thundercomm.s3.dualstack.ap-northeast-1.amazonaws.com/uploads
2727

2828
apt update -y
2929

30-
apt-get -y --allow-downgrades install libsqlite3-0=3.45.1-1ubuntu2
31-
apt-get -y install libqnn1 libsnpe1 tensorflow-lite-qcom-apps qcom-adreno1
30+
apt-get -y --allow-downgrades install libsqlite3-0=3.45.1-1ubuntu2 libqnn1 libsnpe1 qcom-adreno1 device-tree-compiler
3231

3332
ln -sf libOpenCL.so.1 /usr/lib/aarch64-linux-gnu/libOpenCL.so # Fix for snpe-tools
3433

@@ -42,7 +41,7 @@ systemctl enable ssh
4241

4342
# Remove extra packages too
4443
echo "Purging extra things"
45-
apt-get purge -y gdb gcc g++ linux-headers* libgcc*-dev perl-modules* git vim-runtime tensorflow-lite-qcom-apps
44+
apt-get purge -y gdb gcc g++ linux-headers* libgcc*-dev perl-modules* git vim-runtime
4645

4746
# get rid of snaps
4847
echo "Purging snaps"
@@ -52,12 +51,6 @@ apt-get purge --yes --quiet lxd-installer lxd-agent-loader
5251
apt-get purge --yes --quiet snapd
5352
apt-get autoremove -y
5453

55-
echo "Installing additional things"
56-
57-
apt-get update -y
58-
59-
apt-get install -y device-tree-compiler
60-
6154
rm -rf /var/lib/apt/lists/*
6255
apt-get clean
6356

0 commit comments

Comments
 (0)