mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
show packages to be deleted
This commit is contained in:
parent
59ee926cc2
commit
a72cc7a666
5
ELK.sh
5
ELK.sh
@ -19,9 +19,6 @@ declare -A REPO_VERSIONS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# =================== APT repos ===============================
|
# =================== APT repos ===============================
|
||||||
if [[ ! -z ${DRY_RUN:-} ]]; then
|
|
||||||
export APT_DRY_RUN=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
for repo in "${!REPO_VERSIONS[@]}"; do
|
for repo in "${!REPO_VERSIONS[@]}"; do
|
||||||
# magic here, don't quote ${REPO_VERSIONS[$repo][@]}
|
# magic here, don't quote ${REPO_VERSIONS[$repo][@]}
|
||||||
@ -30,7 +27,7 @@ for repo in "${!REPO_VERSIONS[@]}"; do
|
|||||||
echo $repo-$version
|
echo $repo-$version
|
||||||
apt_url="${BASE_URL}/${repo}/${version}/debian"
|
apt_url="${BASE_URL}/${repo}/${version}/debian"
|
||||||
dest_path="${APT_PATH}/${repo}/${version}"
|
dest_path="${APT_PATH}/${repo}/${version}"
|
||||||
"$apt_sync" "$apt_url" stable main amd64,i386 "$dest_path"
|
"$apt_sync" --delete-dry-run "$apt_url" stable main amd64,i386 "$dest_path"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
2
chef.sh
2
chef.sh
@ -15,7 +15,7 @@ APT_PATH="${BASE_PATH}/apt/stable"
|
|||||||
"$yum_sync" "${UPSTREAM}/yum/stable/el/@{os_ver}/@{arch}" 6-8 chef x86_64 "stable-el@{os_ver}-@{arch}" "$YUM_PATH"
|
"$yum_sync" "${UPSTREAM}/yum/stable/el/@{os_ver}/@{arch}" 6-8 chef x86_64 "stable-el@{os_ver}-@{arch}" "$YUM_PATH"
|
||||||
echo "YUM finished"
|
echo "YUM finished"
|
||||||
|
|
||||||
"$apt_sync" "${UPSTREAM}/apt/stable" @ubuntu-lts,@debian-current main amd64,i386,aarch64 "$APT_PATH"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/apt/stable" @ubuntu-lts,@debian-current main amd64,i386,aarch64 "$APT_PATH"
|
||||||
echo "APT finished"
|
echo "APT finished"
|
||||||
|
|
||||||
# vim: ts=4 sts=4 sw=4
|
# vim: ts=4 sts=4 sw=4
|
||||||
|
@ -19,7 +19,7 @@ APT_PATH="${BASE_PATH}/apt"
|
|||||||
# =================== APT repos ===============================
|
# =================== APT repos ===============================
|
||||||
|
|
||||||
for elsver in "${ELASTIC_VERSION[@]}"; do
|
for elsver in "${ELASTIC_VERSION[@]}"; do
|
||||||
"$apt_sync" "${BASE_URL}/packages/${elsver}/apt" stable main amd64,i386 "${APT_PATH}/${elsver}"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/packages/${elsver}/apt" stable main amd64,i386 "${APT_PATH}/${elsver}"
|
||||||
|
|
||||||
(cd ${BASE_PATH}/${elsver}; ln -sfn ../apt/${elsver} apt)
|
(cd ${BASE_PATH}/${elsver}; ln -sfn ../apt/${elsver} apt)
|
||||||
done
|
done
|
||||||
|
@ -14,9 +14,9 @@ UBUNTU_PATH="${BASE_PATH}/ubuntu"
|
|||||||
DEBIAN_PATH="${BASE_PATH}/debian"
|
DEBIAN_PATH="${BASE_PATH}/debian"
|
||||||
|
|
||||||
# =================== APT repos ===============================
|
# =================== APT repos ===============================
|
||||||
"$apt_sync" "${BASE_URL}/ubuntu" @ubuntu-lts contrib amd64,i386 "$UBUNTU_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/ubuntu" @ubuntu-lts contrib amd64,i386 "$UBUNTU_PATH"
|
||||||
echo "Ubuntu finished"
|
echo "Ubuntu finished"
|
||||||
"$apt_sync" "${BASE_URL}/debian" @debian-current contrib amd64,i386 "$DEBIAN_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/debian" @debian-current contrib amd64,i386 "$DEBIAN_PATH"
|
||||||
echo "Debian finished"
|
echo "Debian finished"
|
||||||
|
|
||||||
# =================== YUM repos ===============================
|
# =================== YUM repos ===============================
|
||||||
|
@ -17,9 +17,9 @@ DEBIAN_PATH="${BASE_PATH}/debian/"
|
|||||||
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}/" 6-8 "gitlab" x86_64 "el@{os_ver}" "$YUM_PATH"
|
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}/" 6-8 "gitlab" x86_64 "el@{os_ver}" "$YUM_PATH"
|
||||||
echo "YUM finished"
|
echo "YUM finished"
|
||||||
|
|
||||||
"$apt_sync" "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386 "$UBUNTU_PATH"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386 "$UBUNTU_PATH"
|
||||||
echo "Ubuntu finished"
|
echo "Ubuntu finished"
|
||||||
"$apt_sync" "${UPSTREAM}/debian" @debian-current main amd64,i386 "$DEBIAN_PATH"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/debian" @debian-current main amd64,i386 "$DEBIAN_PATH"
|
||||||
echo "Debian finished"
|
echo "Debian finished"
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ DEBIAN_PATH="${BASE_PATH}/debian/"
|
|||||||
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}" 6-7 gitlab-ci-multi-runner x86_64 "el@{os_ver}" "$YUM_PATH"
|
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}" 6-7 gitlab-ci-multi-runner x86_64 "el@{os_ver}" "$YUM_PATH"
|
||||||
echo "YUM finished"
|
echo "YUM finished"
|
||||||
|
|
||||||
"$apt_sync" "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386 "$UBUNTU_PATH"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386 "$UBUNTU_PATH"
|
||||||
echo "Ubuntu finished"
|
echo "Ubuntu finished"
|
||||||
"$apt_sync" "${UPSTREAM}/debian" @debian-current main amd64,i386 "$DEBIAN_PATH"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/debian" @debian-current main amd64,i386 "$DEBIAN_PATH"
|
||||||
echo "Debian finished"
|
echo "Debian finished"
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ DEBIAN_PATH="${BASE_PATH}/debian/"
|
|||||||
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}" 6-8 gitlab-runner x86_64 "el@{os_ver}" "$YUM_PATH"
|
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}" 6-8 gitlab-runner x86_64 "el@{os_ver}" "$YUM_PATH"
|
||||||
echo "YUM finished"
|
echo "YUM finished"
|
||||||
|
|
||||||
"$apt_sync" "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386 "$UBUNTU_PATH"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386 "$UBUNTU_PATH"
|
||||||
echo "Ubuntu finished"
|
echo "Ubuntu finished"
|
||||||
"$apt_sync" "${UPSTREAM}/debian" @debian-current main amd64,i386 "$DEBIAN_PATH"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/debian" @debian-current main amd64,i386 "$DEBIAN_PATH"
|
||||||
echo "Debian finished"
|
echo "Debian finished"
|
||||||
|
|
||||||
# vim: ts=4 sts=4 sw=4
|
# vim: ts=4 sts=4 sw=4
|
||||||
|
@ -14,7 +14,7 @@ YUM_PATH="${BASE_PATH}/yum"
|
|||||||
APT_PATH="${BASE_PATH}/apt"
|
APT_PATH="${BASE_PATH}/apt"
|
||||||
|
|
||||||
# =================== APT repos ===============================
|
# =================== APT repos ===============================
|
||||||
"$apt_sync" "${BASE_URL}/deb" stable,beta main amd64,armhf,arm64 "$APT_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/deb" stable,beta main amd64,armhf,arm64 "$APT_PATH"
|
||||||
echo "APT finished"
|
echo "APT finished"
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ wget -O ${BASE_PATH}/influxdb.key ${BASE_URL}/influxdb.key
|
|||||||
|
|
||||||
# =================== APT repos ===============================
|
# =================== APT repos ===============================
|
||||||
|
|
||||||
"$apt_sync" "${BASE_URL}/ubuntu" @ubuntu-lts stable amd64,i386,armhf,arm64 "$UBUNTU_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/ubuntu" @ubuntu-lts stable amd64,i386,armhf,arm64 "$UBUNTU_PATH"
|
||||||
echo "Ubuntu finished"
|
echo "Ubuntu finished"
|
||||||
"$apt_sync" "${BASE_URL}/debian" @debian-current stable amd64,i386,armhf,arm64 "$DEBIAN_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/debian" @debian-current stable amd64,i386,armhf,arm64 "$DEBIAN_PATH"
|
||||||
echo "Debian finished"
|
echo "Debian finished"
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ YUM_PATH="${BASE_PATH}/yum/repos"
|
|||||||
APT_PATH="${BASE_PATH}/apt"
|
APT_PATH="${BASE_PATH}/apt"
|
||||||
|
|
||||||
# =================== APT repos ===============================
|
# =================== APT repos ===============================
|
||||||
"$apt_sync" "${BASE_URL}/apt" "kubernetes-@{debian-current},kubernetes-@{ubuntu-lts}" main amd64,i386,armhf,arm64 "$APT_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/apt" "kubernetes-@{debian-current},kubernetes-@{ubuntu-lts}" main amd64,i386,armhf,arm64 "$APT_PATH"
|
||||||
echo "APT finished"
|
echo "APT finished"
|
||||||
|
|
||||||
# =================== YUM/DNF repos ==========================
|
# =================== YUM/DNF repos ==========================
|
||||||
|
@ -13,7 +13,7 @@ APT_PATH="${BASE_PATH}/debian"
|
|||||||
|
|
||||||
# === download deb packages ====
|
# === download deb packages ====
|
||||||
|
|
||||||
"$apt_sync" "${BASE_URL}/debian" @debian-current pve-no-subscription,pvetest amd64 "$APT_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/debian" @debian-current pve-no-subscription,pvetest amd64 "$APT_PATH"
|
||||||
echo "Debian finished"
|
echo "Debian finished"
|
||||||
|
|
||||||
# === download standalone files ====
|
# === download standalone files ====
|
||||||
|
2
ros2.sh
2
ros2.sh
@ -13,5 +13,5 @@ APT_PATH="${BASE_PATH}/ubuntu"
|
|||||||
APT_VERSIONS=@ubuntu-lts,disco,eoan,focal,@debian-current
|
APT_VERSIONS=@ubuntu-lts,disco,eoan,focal,@debian-current
|
||||||
|
|
||||||
# =================== APT repos ===============================
|
# =================== APT repos ===============================
|
||||||
"$apt_sync" "${BASE_URL}/ubuntu" $APT_VERSIONS main amd64,armhf,arm64 "$APT_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/ubuntu" $APT_VERSIONS main amd64,armhf,arm64 "$APT_PATH"
|
||||||
echo "APT finished"
|
echo "APT finished"
|
||||||
|
@ -19,7 +19,7 @@ components=${components:1}
|
|||||||
echo "YUM finished"
|
echo "YUM finished"
|
||||||
|
|
||||||
for ver in ${RUDDER_VERS[@]}; do
|
for ver in ${RUDDER_VERS[@]}; do
|
||||||
"$apt_sync" "${UPSTREAM}/apt/${ver}" @ubuntu-lts,@debian-current main amd64 "$APT_PATH/${ver}"
|
"$apt_sync" --delete-dry-run "${UPSTREAM}/apt/${ver}" @ubuntu-lts,@debian-current main amd64 "$APT_PATH/${ver}"
|
||||||
done
|
done
|
||||||
echo "APT finished"
|
echo "APT finished"
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ echo "YUM finished"
|
|||||||
|
|
||||||
# === download deb packages ====
|
# === download deb packages ====
|
||||||
|
|
||||||
"$apt_sync" "${BASE_URL}/debian" @debian-current,@ubuntu-lts contrib,non-free amd64,i386 "$APT_PATH"
|
"$apt_sync" --delete-dry-run "${BASE_URL}/debian" @debian-current,@ubuntu-lts contrib,non-free amd64,i386 "$APT_PATH"
|
||||||
echo "Debian and ubuntu finished"
|
echo "Debian and ubuntu finished"
|
||||||
|
|
||||||
# === download standalone packages ====
|
# === download standalone packages ====
|
||||||
|
Loading…
x
Reference in New Issue
Block a user