1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/bash set -e WORKDIR=$(pwd) REPO_DIR="$WORKDIR/apt-repo" # create necessary directories mkdir -p "$REPO_DIR/{conf,dists,incoming,indices,pool,db}" # repo configuration cat > "$REPO_DIR/conf/distributions" <<EOF Codename: focal Suite: stable Components: main Architectures: amd64 EOF # add packages to the repo reprepro -b "$REPO_DIR" includedeb focal "$WORKDIR/output/*.deb"