This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
files=(/var/cache/pacman/pkg/*.pkg.tar.zst) | |
i=0 | |
while [ "$i" -lt "$1" ]; do | |
pkg="${files[i]}" | |
gpg --home=/etc/pacman.d/gnupg --verify $pkg.sig $pkg | |
i=$((i + 1)) | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update && apt upgrade -y | |
# Java 8 | |
curl -fsSL "https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public" | gpg --dearmor --yes -o /usr/share/keyrings/adoptopenjdk-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/adoptopenjdk-archive-keyring.gpg] https://adoptopenjdk.jfrog.io/adoptopenjdk/deb bullseye main" | tee /etc/apt/sources.list.d/adoptopenjdk.list | |
apt update && apt install -y adoptopenjdk-8-hotspot | |
# MongoDB 3.6 | |
wget -qO - https://www.mongodb.org/static/pgp/server-3.6.asc | apt-key add - | |
echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list |