Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove apt cache for each layer #286

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions userspace/base_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ apt-fast install --no-install-recommends -yq \
wireless-tools \
zlib1g-dev

rm -rf /var/lib/apt/lists/*

# Allow chrony to make a big adjustment to system time on boot
echo "makestep 0.1 3" >> /etc/chrony/chrony.conf

Expand All @@ -128,7 +126,6 @@ echo "comma ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ln -sf /bin/bash /bin/sh

# Install necessary libs
apt-fast update -yq
apt-fast install --no-install-recommends -yq \
libacl1:armhf \
libasan5-armhf-cross \
Expand Down Expand Up @@ -207,4 +204,6 @@ apt-fast install --no-install-recommends -yq \
wpasupplicant \
hostapd \
libgtk2.0-dev \
libxml2:armhf \
libxml2:armhf

rm -rf /var/lib/apt/lists/*
2 changes: 2 additions & 0 deletions userspace/compile-modemmanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ mkdir -p /tmp/mm-plugins
mv /usr/lib/aarch64-linux-gnu/ModemManager/libmm-*.so /tmp/mm-plugins
cp /tmp/mm-plugins/*generic* /usr/lib/aarch64-linux-gnu/ModemManager/
cp /tmp/mm-plugins/*quectel* /usr/lib/aarch64-linux-gnu/ModemManager/

rm -rf /var/lib/apt/lists/*
2 changes: 2 additions & 0 deletions userspace/install_extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ apt-fast update && apt-fast install -y --no-install-recommends \

# color prompt
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' /home/comma/.bashrc

rm -rf /var/lib/apt/lists/*
2 changes: 2 additions & 0 deletions userspace/openpilot_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ apt-fast install --no-install-recommends -yq \
qtpositioning5-dev \
qtwayland5 \
zstd

rm -rf /var/lib/apt/lists/*