Skip to content

Commit

Permalink
Adding AlmaLinux and RockyLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
Den Ivanov committed Jun 21, 2021
1 parent d08f6bc commit e7e5941
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions distrofunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,23 @@ notlive
checkfile $1
}

almaurl () {
mirror="https://mirrors.almalinux.org"
one=$(curl -s $mirror/isos.html | html2text | grep -m1 x86_64 | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }')
two=$(curl -s $mirror$one | html2text | grep -A2 Norway | grep -m1 isos | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }')
three=$(curl -s $two/ | grep -m1 dvd | awk -F'>' '{ print $2 }' | awk -F'<' '{ print $1 }')
new="$two/$three"
output="alma.iso"
checkfile $1
}

rockyurl () {
mirror="https://rockylinux.org/download"
new=$(curl -s $mirror | html2text | grep -m1 DVD | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }')
output="rocky.iso"
checkfile $1
}

alpineurl () {
mirrorone="https://alpinelinux.org/downloads/"
one=$(curl -s $mirrorone | grep Current | awk -F">" '{ print $3 }' | awk -F"<" '{ print $1 }')
Expand Down
4 changes: 3 additions & 1 deletion download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cmd="qemu-system-x86_64" # The name of the qemu file to search & launch
# Categories
arch=(archlinux manjaro arcolinux archbang parabola endeavour artix arco garuda rebornos archlabs namib obarun archcraft cutefishos peux)
deb=(debian ubuntu linuxmint altlinux zorinos solus popos deepin mxlinux knoppix kali puppy pureos elementary backbox devuan jingos)
rpm=(fedora centos opensuse rosa mandriva mageia clearos)
rpm=(fedora centos opensuse rosa mandriva mageia clearos alma rocky)
other=(alpine tinycore porteus slitaz pclinuxos void fourmlinux kaos clearlinux dragora slackware adelie plop)
sourcebased=(gentoo sabayon calculate nixos guix)
containers=(rancheros k3os flatcar silverblue photon coreos)
Expand Down Expand Up @@ -91,6 +91,8 @@ rosa=("ROSA" "amd64" "desktop-fresh" "rosaurl")
mandriva=("Mandriva" "amd64" "release" "mandrivaurl")
mageia=("Mageia" "amd64" "release" "mageiaurl")
clearos=("ClearOS" "amd64" "release" "clearosurl")
alma=("AlmaLinux" "amd64" "release" "almaurl")
rocky=("RockyLinux" "amd64" "rc" "rockyurl")

alpine=("Alpine" "amd64" "extended" "alpineurl")
tinycore=("TinyCore" "amd64" "current" "tinycoreurl")
Expand Down

0 comments on commit e7e5941

Please sign in to comment.