what's the recommended approach for setting up remote rpm repositories to proxy Amazon Linux?
The yum repo files on Amazon linux show a mirror list and then base URLs with UIDs. I don't know if I can count on the Repo-baseurl or if there's a way to feed the mirror list into artifactory.
Do, I need to replicate the entire mirror list and then pull them together in a virtual repository?
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Repo-id : amzn2-core/2/x86_64
Repo-name : Amazon Linux 2 core repository
Repo-revision: 1532545700
Repo-updated : Wed Jul 25 19:08:20 2018
Repo-pkgs : 9,137
Repo-size : 8.1 G
Repo-mirrors : http://amazonlinux.us-east-1.amazonaws.com/2/core/latest/x86_64/mirror.list
Repo-baseurl : http://amazonlinux.us-east-1.amazonaws.com/2/core/2.0/x86_64/ecb7f3179dc53ca05863f9df12535c3a24d03bb87b8f3816aaa632d02ff53f2c/
Repo-expire : 300 second(s) (last: Tue Jul 31 11:46:36 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/amzn2-core.repo
After creating a remote rpm repo called rpm-amzn-remote linked to http://amazonlinux.us-east-1.amazonaws.com/2/core/2.0/x86_64/ecb7f3179dc53ca05863f9df12535c3a24d03bb87b8f3816aaa632d02ff53f2c/ I see the following relative paths when I run repoquery
repoquery --tempcache \
--repofrompath=repo,http://artifactory/rpm-amzn-remote/ --repoid=repo\
--qf="%{version}-%{release}.%{arch} %{location}" --show-duplicates kernel-devel
# result
4.9.62-10.57.amzn2.x86_64 \
http://artifactory/../../../../blobstore/18381632cff65dcf8dd4b7fe67bb45f58dc85720816c78d03ffa6677cab4b9e1/kernel-devel-4.9.62-10.57.amzn2.x86_64.rpm
and of course, the link cannot be downloaded
mirror.list
file.