This repository has been archived on 2024-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
toolchain/scripts/packages-install

22 lines
440 B
Plaintext
Raw Normal View History

2023-01-28 00:05:03 +00:00
#!/usr/bin/env bash
set -e;
ARCH=$(uname -m)
cp /config/* /etc/apt/
2023-01-28 00:05:03 +00:00
cat <<-EOF > /etc/apt/sources.list
deb [trusted=yes] file:///fetch apt/
EOF
rm /etc/apt/sources.list.d/*
2023-01-28 00:05:03 +00:00
apt update -o Acquire::Check-Valid-Until=false
2023-01-28 00:05:03 +00:00
apt-get install \
--allow-downgrades \
-y $(cat /etc/apt/apt-pins-${ARCH}.list)
2023-01-28 00:05:03 +00:00
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;
2023-04-13 21:20:55 +00:00
echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers