Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repo=https://linux-repo.us.securitycloud.symantec.com
- sep=sep_linux/14.3RU1
- arch=x86_64
- for linux in amazonlinux2 rhel6 rhel7 rhel8 sles12 sles15; do
- base=$repo/$sep/$linux/$arch
- url=$base/$(curl -s $base/repodata/repomd.xml | grep -oP 'repodata.*primary.xml.gz')
- pkgs=($(curl -s $url | gunzip | grep -oP 'sdcss.*?.rpm(?="/>)'))
- for p in ${pkgs[@]}; do wget -nc $base/$p -P $(pwd)/$linux/; done
- done
- arch=amd64
- for linux in ubuntu14 ubuntu16 ubuntu18 ubuntu20; do
- base=$repo/$sep/$linux
- url=$base/dists/$sep/main/binary-$arch/Packages
- pkgs=($(curl -s $url | grep -oP '(?<=Filename: ).*?\.deb'))
- for p in ${pkgs[@]}; do wget -nc $base/$p -P $(pwd)/$linux/; done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement