kubekey/hack/gen-repository-iso/download-pkgs.sh
joyceliu 2a676185e2 feat: kubekey gitops
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-01-05 15:14:36 +08:00

8 lines
278 B
Bash

#! /bin/sh
for p in ${PACKAGES} ; do
echo "\n Download $p ... \n"
sudo apt-get download $p 2>>errors.txt
for i in $(apt-cache depends $p | grep -E 'Depends|Recommends|Suggests' | cut -d ':' -f 2,3 | sed -e s/' '/''/); do sudo apt-get download $i 2>>errors.txt; done
done