Skip to content

Commit

Permalink
Adoptium: change centos to rhel for long term support rpm (#149)
Browse files Browse the repository at this point in the history
* adoptium: use rhel rpm for LTS rhel and variants

adoptium: use rhel rpm for LTS rhel and variants

adoptium/installer#499 (comment)

* adoptium: keep centos 7, add rhel 7,8,9
  • Loading branch information
taomaree authored Nov 8, 2022
1 parent 67a946d commit 35b397d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions adoptium.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@ def delete_old_files(ver: int, alive_files: Set[str]):
"centos@{os_ver}-@{arch}",
f"{BASE_PATH}/rpm"
],
check=True)

# =================== YUM repos ==========================
# "$yum_sync" "${BASE_URL}/rpm/rhel/@{os_ver}/@{arch}" 7 Adopitum x86_64,aarch64 "rhel@{os_ver}-@{arch}" "$BASE_PATH/rpm"
sp.run([str(here/"yum-sync.py"),
BASE_URL+'/rpm/rhel/@{os_ver}/@{arch}',
"--download-repodata",
'7,8,9',
'Adoptium',
'x86_64,aarch64',
"rhel@{os_ver}-@{arch}",
f"{BASE_PATH}/rpm"
],
check=True)
print("YUM finished", flush=True)

0 comments on commit 35b397d

Please sign in to comment.