Skip to content
Permalink
Browse files

Fix any lingering packages

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 23, 2019
1 parent 860b937 commit 8b1e93cf76b113b8c97fb102c37a6dc181151ac3
Showing with 13 additions and 10 deletions.
  1. +13 −10 nems-build.sh
@@ -96,8 +96,8 @@ sleep 5

# Remove cruft
apt update
apt --yes --allow-remove-essential clean
apt --yes --allow-remove-essential --purge remove $(grep -vE "^\s*#" build/packages.remove | tr "\n" " ")
apt -y --allow-remove-essential clean
apt -y --allow-remove-essential --purge remove $(grep -vE "^\s*#" build/packages.remove | tr "\n" " ")
apt autoremove --purge -y
rm -R /usr/share/fonts/*
rm -R /usr/share/icons/*
@@ -108,30 +108,33 @@ sleep 5

for pkg in $(grep -vE "^\s*#" build/packages.base | tr "\n" " ")
do
apt --yes --no-install-recommends install $pkg
apt -y --no-install-recommends install $pkg
done

# Add packages from repositories
for pkg in $(grep -vE "^\s*#" build/packages.add | tr "\n" " ")
do
apt --yes --no-install-recommends install $pkg
apt -y --no-install-recommends install $pkg
done

# Fix any packages that didn't install due to dependency issues
apt -y --fix-broken install

# Install dependencies, if any
apt --yes install -f
apt -y install -f

# Be up to date
apt --yes upgrade
#apt --yes dist-upgrade
apt -y upgrade
#apt -y dist-upgrade

# Upgrade firmware (Removed; will stick with stable firmware via raspberrypi-bootloader)
# rpi-update

# Upgrade again in case anything changed on the new kernel
# Or if anything was held back for the upgraded packages
apt update
apt --yes upgrade
#apt --yes dist-upgrade
apt -y upgrade
#apt -y dist-upgrade

# Disable firstrun (ARMbian)
if [[ -e /etc/init.d/firstrun ]]; then
@@ -159,7 +162,7 @@ echo ""
# Final cleanup...

cd /tmp
apt --yes autoremove
apt -y autoremove

echo "Usage after build:"
df -hT /etc

0 comments on commit 8b1e93c

Please sign in to comment.
You can’t perform that action at this time.