forked from quickemu-project/quickemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quickget
executable file
·4036 lines (3553 loc) · 151 KB
/
quickget
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
export LC_ALL=C
# Here the quick 'n dirty guide to adding a new OS to quickget
#
# 1. Update os_support() - add new OS, all lowercase
# 2. Update pretty_name() - add a pretty name for new OS *only if the catch all is not suitable*
# 3. Update os_homepages() - add a homepage for new OS
# 4. Create a releases_newos() generator (required) outputs the current supported release versions
# 5. Create a editions_newos() generator (optional) outputs the editions if new OS has multiple flavours/editions
# 6. Update make_vm_config() - add any *required* new OS tweaks
# 7. Create a get_newos() function - that does something like this:
#
#function get_newos() {
# local EDITION="${1:-}"
# local HASH=""
# local ISO="newos-${RELEASE}-${EDITION}-amd64.iso"
# local URL="https://www.newos.org/download/${RELEASE}/${EDITION}"
#
# HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1)
# echo "${URL}/${ISO} ${HASH}"
#}
function cleanup() {
if [ -n "$(jobs -p)" ]; then
kill "$(jobs -p)"
fi
}
function os_info() {
local SIMPLE_NAME=""
local INFO=""
SIMPLE_NAME="${1}"
case ${SIMPLE_NAME} in
#name) INFO=" PrettyName|BasedOf|Credentials|Homepage|Info";;
alma) INFO="Alma Linux|Fedora,RedHat||https://almalinux.org/|Community owned and governed, forever-free enterprise Linux distribution, focused on long-term stability, providing a robust production-grade platform. AlmaLinux OS is binary compatible with RHEL®.";;
alpine) INFO="Alpine Linux|Independent||https://alpinelinux.org/|Security-oriented, lightweight Linux distribution based on musl libc and busybox.";;
android) INFO="Android x86|Independent||https://www.android-x86.org/|Port Android Open Source Project to x86 platform.";;
antix) INFO="Antix|Debian||https://antixlinux.com/|Fast, lightweight and easy to install systemd-free linux live CD distribution based on Debian Stable for Intel-AMD x86 compatible systems.";;
archcraft) INFO="Archcraft|Arch||https://archcraft.io/|Yet another minimal Linux distribution, based on Arch Linux.";;
archlinux) INFO="Arch Linux|Independent||https://archlinux.org/|Lightweight and flexible Linux® distribution that tries to Keep It Simple.";;
arcolinux) INFO="Arco Linux|Arch||https://arcolinux.com/|Is all about becoming an expert in linux.";;
artixlinux) INFO="Artix Linux|Arch||https://artixlinux.org/|The Art of Linux. Simple. Fast. Systemd-free.";;
athenaos) INFO="Athena OS|Arch||https://athenaos.org/|Offer a different experience than the most used pentesting distributions by providing only tools that fit with the user needs and improving the access to hacking resources and learning materials.";;
batocera) INFO="Batocera|Independent||https://batocera.org/|Retro-gaming distribution with the aim of turning any computer/nano computer into a gaming console during a game or permanently.";;
bazzite) INFO="bazzite|Fedora,SteamOS||https://github.com/ublue-os/bazzite/|Container native gaming and a ready-to-game SteamOS like.";;
biglinux) INFO="Big Linux|unknown||https://www.biglinux.com.br/|Is the right choice if you want to have an easy and enriching experience with Linux. It has been perfected over more than 19 years, following our motto: 'In search of the perfect system'.";;
blendos) INFO="BlendOS|Arch||https://blendos.co/|A seamless blend of all Linux distributions. Allows you to have an immutable, atomic and declarative Arch Linux system, with application support from several Linux distributions & Android.";;
bodhi) INFO="Bodhi|Debian,Ubuntu||https://www.bodhilinux.com/|Lightweight distribution featuring the fast & fully customizable Moksha Desktop.";;
bunsenlabs) INFO="Bunsenlab|Debian||https://www.bunsenlabs.org/|Light-weight and easily customizable Openbox desktop. The project is a community continuation of CrunchBang Linux.";;
cachyos) INFO="CachyOS|Arch||https://cachyos.org/|Designed to deliver lightning-fast speeds and stability, ensuring a smooth and enjoyable computing experience every time you use it.";;
centos-stream) INFO="CentOS Stream|Fedora,RedHat||https://www.centos.org/centos-stream/|Continuously delivered distro that tracks just ahead of Red Hat Enterprise Linux (RHEL) development, positioned as a midstream between Fedora Linux and RHEL.";;
chimeralinux) INFO="Chimera Linux|Independent|anon:chimera root:chimera|https://chimera-linux.org/|Modern, general-purpose non-GNU Linux distribution.";;
crunchbang++) INFO="#!++|Debian||https://www.crunchbangplusplus.org/|The classic minimal crunchbang feel, now with debian 12 bookworm.";;
debian) INFO="Debian|Independent||https://www.debian.org/|Complete Free Operating System with perfect level of ease of use and stability.";;
deepin) INFO="Deepin|Debian||https://www.deepin.org/|Beautiful UI design, intimate human-computer interaction, and friendly community environment make you feel at home.";;
devuan) INFO="Devuan|Debian||https://www.devuan.org/|Fork of Debian without systemd that allows users to reclaim control over their system by avoiding unnecessary entanglements and ensuring Init Freedom.";;
dragonflybsd) INFO="DragonFlyBSD|FreeBSD||https://www.dragonflybsd.org/|Provides an opportunity for the BSD base to grow in an entirely different direction from the one taken in the FreeBSD, NetBSD, and OpenBSD series.";;
easyos) INFO="EasyOS|Independent||https://easyos.org/|Experimental distribution designed from scratch to support containers.";;
edubuntu) INFO="Edubuntu|Ubuntu||https://www.edubuntu.org/|Stable, secure and privacy concious option for schools.";;
elementary) INFO="elementary OS|Debian,Ubuntu||https://elementary.io/|Thoughtful, capable, and ethical replacement for Windows and macOS.";;
endeavouros) INFO="EndeavourOS|Arch||https://endeavouros.com/|Provides an Arch experience without the hassle of installing it manually for both x86_64 and ARM systems.";;
endless) INFO="Endless OS|Debian||https://www.endlessos.org/os|Completely Free, User-Friendly Operating System Packed with Educational Tools, Games, and More.";;
fedora) INFO="Fedora|Independent||https://www.fedoraproject.org/|Innovative platform for hardware, clouds, and containers, built with love by you.";;
freebsd) INFO="FreeBSD|Independent||https://www.freebsd.org/|Operating system used to power modern servers, desktops, and embedded platforms.";;
freedos) INFO="FreeDOS|Independent||https://freedos.org/|DOS-compatible operating system that you can use to play classic DOS games, run legacy business software, or develop embedded systems.";;
garuda) INFO="Garuda Linux|Arch||https://garudalinux.org/|Feature rich and easy to use Linux distribution.";;
gentoo) INFO="Gentoo|Independent||https://www.gentoo.org/|Highly flexible, source-based Linux distribution.";;
ghostbsd) INFO="GhostBSD|FreeBSD||https://www.ghostbsd.org/|Simple, elegant desktop BSD Operating System.";;
guix) INFO="Guix|Independent||https://guix.gnu.org/|Distribution of the GNU operating system developed by the GNU Project—which respects the freedom of computer users.";;
haiku) INFO="Haiku|Independent||https://www.haiku-os.org/|Specifically targets personal computing. Inspired by the BeOS, Haiku is fast, simple to use, easy to learn and yet very powerful.";;
holoiso) INFO="SteamOS HoloISO|Arch,SteamOS||https://github.com/HoloISO/holoiso|Bring the Steam Decks SteamOS Holo redistribution and provide a close-to-official SteamOS experience.";;
kali) INFO="Kali|Debian||https://www.kali.org/|The most advanced Penetration Testing Distribution.";;
kdeneon) INFO="KDE Neon|Debian,Ubuntu||https://neon.kde.org/|Latest and greatest of KDE community software packaged on a rock-solid base.";;
kolibrios) INFO="KolibriOS|Independent||http://kolibrios.org/en/|Tiny yet incredibly powerful and fast operating system.";;
kubuntu) INFO="Kubuntu|Ubuntu||https://kubuntu.org/|Free, complete, and open-source alternative to Microsoft Windows and Mac OS X which contains everything you need to work, play, or share.";;
linuxlite) INFO="Linux Lite|Debian,Ubuntu||https://www.linuxliteos.com/|Your first simple, fast and free stop in the world of Linux.";;
linuxmint) INFO="Linux Mint|Debian,Ubuntu||https://linuxmint.com/|Designed to work out of the box and comes fully equipped with the apps most people need.";;
lmde) INFO="Linux Mint Debian Edition|Debian||https://www.linuxmint.com/download_lmde.php|Aims to be as similar as possible to Linux Mint, but without using Ubuntu. The package base is provided by Debian instead.";;
lubuntu) INFO="Lubuntu|Ubuntu||https://lubuntu.me/|Complete Operating System that ships the essential apps and services for daily use: office applications, PDF reader, image editor, music and video players, etc. Using lightwave lxde/lxqt.";;
mageia) INFO="Mageia|Independent||https://www.mageia.org/|Stable, secure operating system for desktop & server.";;
manjaro) INFO="Manjaro|Arch||https://manjaro.org/|Versatile, free, and open-source Linux operating system designed with a strong focus on safeguarding user privacy and offering extensive control over hardware.";;
mxlinux) INFO="MX Linux|Debian,Antix||https://mxlinux.org/|Designed to combine elegant and efficient desktops with high stability and solid performance.";;
netboot) INFO="netboot.xyz|iPXE||https://netboot.xyz/|Your favorite operating systems in one place.";;
netbsd) INFO="NetBSD|Independent||https://www.netbsd.org/|Free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.";;
nitrux) INFO="Nitrux|Debian||https://nxos.org/|Powered by Debian, KDE Plasma and Frameworks, and AppImages.";;
nixos) INFO="NixOS|Independent||https://nixos.org/|Linux distribution based on Nix package manager, tool that takes a unique approach to package management and system configuration.";;
nwgiso) INFO="nwg-shell|Arch|nwg:nwg|https://nwg-piotr.github.io/nwg-shell/|Arch Linux ISO with nwg-shell for sway and Hyprland";;
macos) INFO="macOS|proprietary||https://www.apple.com/macos/|Work and play on your Mac are even more powerful. Elevate your presence on video calls. Access information in all-new ways. Boost gaming performance. And discover even more ways to personalize your Mac.";;
openbsd) INFO="OpenBSD|Independent||https://www.openbsd.org/|FREE, multi-platform 4.4BSD-based UNIX-like operating system. Our efforts emphasize portability, standardization, correctness, proactive security and integrated cryptography.";;
openindiana) INFO="OpenIndiana|Solaris,OpenSolaris||https://www.openindiana.org/|Community supported illumos-based operating system.";;
opensuse) INFO="openSUSE|Independent||https://www.opensuse.org/|The makers choice for sysadmins, developers and desktop users.";;
oraclelinux) INFO="Oracle Linux|RedHat||https://www.oracle.com/linux/|Linux with everything required to deploy, optimize, and manage applications on-premises, in the cloud, and at the edge.";;
parrotsec) INFO="Parrot Security|Debian|parrot:parrot|https://www.parrotsec.org/|Provides a huge arsenal of tools, utilities and libraries that IT and security professionals can use to test and assess the security of their assets in a reliable, compliant and reproducible way.";;
peppermint) INFO="PeppermintOS|Debian,Devuan||https://peppermintos.com/|Provides a user with the opportunity to build the system that best fits their needs. While at the same time providing a functioning OS with minimum hassle out of the box.";;
popos) INFO="Pop!_OS|Ubuntu||https://pop.system76.com/|Operating system for STEM and creative professionals who use their computer as a tool to discover and create.";;
porteus) INFO="Porteus|Slackware||http://www.porteus.org/|Complete linux operating system that is optimized to run from CD, USB flash drive, hard drive, or other bootable storage media.";;
primtux) INFO="PrimTux|Ubuntu||https://primtux.fr/|Upgrade for obsolete equipment and benefiting the school or educational environment in the spirit of education.";;
pureos) INFO="PureOS|Debian||https://www.pureos.net/|A fully free/libre and open source GNU/Linux operating system, endorsed by the Free Software Foundation.";;
reactos) INFO="ReactOS|Independent||https://reactos.org/|Imagine running your favorite Windows applications and drivers in an open-source environment you can trust.";;
rebornos) INFO="RebornOS|Arch||https://rebornos.org/|Aiming to make Arch Linux as user friendly as possible by providing interface solutions to things you normally have to do in a terminal.";;
rockylinux) INFO="Rocky Linux|RedHat||https://rockylinux.org/|Open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®.";;
siduction) INFO="Siduction|Debian||https://siduction.org/|Operating system based on the Linux kernel and the GNU project. In addition, there are applications and libraries from Debian.";;
slackware) INFO="Slackware|Independent||http://www.slackware.com/|Advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities.";;
slax) INFO="Slax|Debian Slackware||https://www.slax.org/|Compact, fast, and modern Linux operating system that combines sleek design with modular approach. With the ability to run directly from a USB flash drive without the need for installation, Slax is truly portable and fits easily in your pocket.";;
slint) INFO="Slint|Slackware||https://slint.fr/|Slint is an easy-to-use, versatile, blind-friendly Linux distribution for 64-bit computers. Slint is based on Slackware and borrows tools from Salix. Maintainer: Didier Spaier.";;
slitaz) INFO="SliTaz|Independent||https://www.slitaz.org/en/|Simple, fast and low resource Linux OS for servers & desktops.";;
solus) INFO="Solus|Independent||https://getsol.us/|Designed for home computing. Every tweak enables us to deliver a cohesive computing experience.";;
sparkylinux) INFO="SparkyLinux|Debian||https://sparkylinux.org/|Fast, lightweight and fully customizable operating system which offers several versions for different use cases.";;
spirallinux) INFO="Spiral Linux|Debian||https://spirallinux.github.io/|Selection of Linux spins built from Debian GNU/Linux, with a focus on simplicity and out-of-the-box usability across all the major desktop environments.";;
tails) INFO="Tails|Debian||https://tails.net/|Portable operating system that protects against surveillance and censorship.";;
tinycore) INFO="Tiny Core Linux|Independent||http://www.tinycorelinux.net/|Highly modular based system with community build extensions.";;
trisquel) INFO="Trisquel|Debian,Ubuntu||https://trisquel.info/|Fully free operating system for home users, small enterprises and educational centers.";;
truenas-core) INFO="TrueNAS Core|FreeBSD||https://www.truenas.com/truenas-core/|World’s most popular storage OS because it gives you the power to build your own professional-grade storage system to use in a variety of data-intensive applications without any software costs.";;
truenas-scale) INFO="TrueNAS Scale|Debian||https://www.truenas.com/truenas-scale/|Open Source Hyperconverged Infrastructure (HCI) solution. In addition to powerful scale-out storage capabilities, SCALE adds Linux Containers and VMs (KVM) so apps run closer to data.";;
ubuntu) INFO="Ubuntu|Debian||https://ubuntu.com/|Complete desktop Linux operating system, freely available with both community and professional support.";;
ubuntu-budgie) INFO="Ubuntu Budgie|Ubuntu||https://ubuntubudgie.org/|Community developed distribution, integrating the Budgie Desktop Environment with Ubuntu at its core.";;
ubuntucinnamon) INFO="Ubuntu Cinnamon|Ubuntu||https://ubuntucinnamon.org/|Community-driven, featuring Linux Mint’s Cinnamon Desktop with Ubuntu at the core, packed fast and full of features, here is the most traditionally modern desktop you will ever love.";;
ubuntukylin) INFO="Ubuntu Kylin|Ubuntu||https://ubuntukylin.com/|Universal desktop operating system for personal computers, laptops, and embedded devices. It is dedicated to bringing a smarter user experience to users all over the world.";;
ubuntu-mate) INFO="Ubuntu MATE|Ubuntu||https://ubuntu-mate.org/|Stable, easy-to-use operating system with a configurable desktop environment. It is ideal for those who want the most out of their computers and prefer a traditional desktop metaphor. Using Mate desktop.";;
ubuntu-server) INFO="Ubuntu Server|Ubuntu||https://ubuntu.com/server|Brings economic and technical scalability to your datacentre, public or private. Whether you want to deploy an OpenStack cloud, a Kubernetes cluster or a 50,000-node render farm, Ubuntu Server delivers the best value scale-out performance available.";;
ubuntustudio) INFO="Ubuntu Studio|Ubuntu||https://ubuntustudio.org/|Comes preinstalled with a selection of the most common free multimedia applications available, and is configured for best performance for various purposes: Audio, Graphics, Video, Photography and Publishing.";;
ubuntu-unity) INFO="Ubuntu Unity|Ubuntu||https://ubuntuunity.org/|Flavor of Ubuntu featuring the Unity7 desktop environment (the default desktop environment used by Ubuntu from 2010-2017).";;
vanillaos) INFO="Vanilla OS|Debian,Ubuntu||https://vanillaos.org/|Designed to be a reliable and productive operating system for your daily work.";;
void) INFO="Void Linux|Independent|anon:voidlinux|https://voidlinux.org/|General purpose operating system. Its package system allows you to quickly install, update and remove software; software is provided in binary packages or can be built directly from sources.";;
vxlinux) INFO="VX Linux|Void||https://vxlinux.org/|Pre-configured, secure systemd-free Plasma desktop with focus on convenience, performance and simplicity. Based on the excellent Void Linux.";;
whonix) INFO="Whonix|Debian||https://www.whonix.org/|Superior Internet Privacy with Whonix™ As handy as an app - delivering maximum anonymity and security.";;
windows) INFO="Windows|proprietary||https://www.microsoft.com/en-us/windows/|Whether you’re gaming, studying, running a business, or running a household, Windows helps you get it done.";;
windows-server) INFO="Windows Server|proprietary||https://www.microsoft.com/en-us/windows-server/|Platform for building an infrastructure of connected applications, networks, and web services.";;
xerolinux) INFO="XeroLinux|Arch||https://xerolinux.xyz/|Arch-Based Distro, that provides you with an easy way to install Arch and a well optimized, beautifully Customized Plasma Desktop, that you can later shape to suite your needs!";;
xubuntu) INFO="Xubuntu|Ubuntu||https://xubuntu.org/|Elegant and easy to use operating system. Xubuntu comes with Xfce, which is a stable, light and configurable desktop environment.";;
zorin) INFO="Zorin OS|Ubuntu||https://zorin.com/os/|Alternative to Windows and macOS designed to make your computer faster, more powerful, secure, and privacy-respecting.";;
esac
echo "${INFO}"
}
function os_about() {
local SIMPLE_NAME=""
local ABOUT=""
SIMPLE_NAME="${1}"
ABOUT=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f5)
echo "${ABOUT}"
}
function os_basedof() {
local SIMPLE_NAME=""
local BASED=""
SIMPLE_NAME="${1}"
BASED=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f2)
echo "${BASED}"
}
if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then
test_iso_url="on"
if [ -n "$4" ]; then
set -- "$2" "$3" "$4"
elif [ -n "$3" ]; then
set -- "$2" "$3"
else
set -- "$2"
fi
elif [ "${1}" == '--show-iso-url' ] || [ "${1}" == '-s' ]; then
show_iso_url="on"
if [ -n "$4" ]; then
set -- "$2" "$3" "$4"
elif [ -n "$3" ]; then
set -- "$2" "$3"
else
set -- "$2"
fi
elif [ "${1}" == '--open-distro-homepage' ] || [ "${1}" == '-o' ]; then
open_distro_homepage="on"
set -- "$2"
elif [ "${1}" == '--download-iso' ] || [ "${1}" == '-d' ]; then
download_iso="on"
if [ -n "$4" ]; then
set -- "$2" "$3" "$4"
elif [ -n "$3" ]; then
set -- "$2" "$3"
else
set -- "$2"
fi
fi
function os_credentials() {
local SIMPLE_NAME=""
local CREDE=""
SIMPLE_NAME="${1}"
CREDE=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f3)
echo "${CREDE}"
}
function os_homepage(){
local SIMPLE_NAME=""
local HOMEP=""
SIMPLE_NAME="${1}"
HOMEP=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f4)
echo "$HOMEP"
}
function pretty_name() {
local SIMPLE_NAME=""
local PRETTY_NAME=""
SIMPLE_NAME="${1}"
case ${SIMPLE_NAME} in
alma) PRETTY_NAME="Alma Linux";;
alpine) PRETTY_NAME="Alpine Linux";;
android) PRETTY_NAME="Android x86";;
archlinux) PRETTY_NAME="Arch Linux";;
archcraft) PRETTY_NAME="Archcraft";;
arcolinux) PRETTY_NAME="Arco Linux";;
artixlinux) PRETTY_NAME="Artix Linux";;
atheanos) PRETTY_NAME="Athena OS";;
biglinux) PRETTY_NAME="BigLinux";;
blendos) PRETTY_NAME="BlendOS";;
cachyos) PRETTY_NAME="CachyOS";;
centos-stream) PRETTY_NAME="CentOS Stream";;
chimeralinux) PRETTY_NAME="Chimera Linux";;
crunchbang++) PRETTY_NAME="Crunchbang++";;
dragonflybsd) PRETTY_NAME="DragonFlyBSD";;
easyos) PRETTY_NAME="EasyOS";;
elementary) PRETTY_NAME="elementary OS";;
endeavouros) PRETTY_NAME="EndeavourOS";;
endless) PRETTY_NAME="Endless OS";;
freebsd) PRETTY_NAME="FreeBSD";;
freedos) PRETTY_NAME="FreeDOS";;
garuda) PRETTY_NAME="Garuda Linux";;
ghostbsd) PRETTY_NAME="GhostBSD";;
gnomeos) PRETTY_NAME="GNOME OS";;
holoiso) PRETTY_NAME="SteamOS HoloISO";;
kdeneon) PRETTY_NAME="KDE Neon";;
kolibrios) PRETTY_NAME="KolibriOS";;
linuxlite) PRETTY_NAME="Linux Lite";;
linuxmint) PRETTY_NAME="Linux Mint";;
lmde) PRETTY_NAME="Linux Mint Debian Edition";;
mageia) PRETTY_NAME="Mageia";;
mxlinux) PRETTY_NAME="MX Linux";;
netboot) PRETTY_NAME="netboot.xyz";;
netbsd) PRETTY_NAME="NetBSD";;
nitrux) PRETTY_NAME="Nitrux";;
nixos) PRETTY_NAME="NixOS";;
macos) PRETTY_NAME="macOS";;
openbsd) PRETTY_NAME="OpenBSD";;
openindiana) PRETTY_NAME="OpenIndiana";;
opensuse) PRETTY_NAME="openSUSE";;
oraclelinux) PRETTY_NAME="Oracle Linux";;
parrotsec) PRETTY_NAME="Parrot Security";;
peppermint) PRETTY_NAME="PeppermintOS";;
popos) PRETTY_NAME="Pop!_OS";;
primtux) PRETTY_NAME="Primtux";;
pureos) PRETTY_NAME="PureOS";;
reactos) PRETTY_NAME="ReactOS";;
rebornos) PRETTY_NAME="RebornOS";;
rockylinux) PRETTY_NAME="Rocky Linux";;
slint) PRETTY_NAME="Slint";;
slitaz) PRETTY_NAME="SliTaz GNU/Linux";;
sparkylinux) PRETTY_NAME="SparkyLinux";;
tinycore) PRETTY_NAME="Tiny Core Linux";;
truenas-core) PRETTY_NAME="TrueNAS Core";;
truenas-scale) PRETTY_NAME="TrueNAS Scale";;
tuxedo-os) PRETTY_NAME="Tuxedo OS";;
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
ubuntucinnamon) PRETTY_NAME="Ubuntu Cinnamon";;
ubuntukylin) PRETTY_NAME="Ubuntu Kylin";;
ubuntu-mate) PRETTY_NAME="Ubuntu MATE";;
ubuntu-server) PRETTY_NAME="Ubuntu Server";;
ubuntustudio) PRETTY_NAME="Ubuntu Studio";;
ubuntu-unity) PRETTY_NAME="Ubuntu Unity";;
vanillaos) PRETTY_NAME="Vanilla OS";;
void) PRETTY_NAME="Void Linux";;
vxlinux) PRETTY_NAME="VX Linux";;
windows-server) PRETTY_NAME="Windows Server";;
xerolinux) PRETTY_NAME="XeroLinux";;
zorin) PRETTY_NAME="Zorin OS";;
*) PRETTY_NAME="${SIMPLE_NAME^}";;
esac
echo "${PRETTY_NAME}"
}
function pretty_name_new() {
local SIMPLE_NAME=""
local PRETTY_NAME=""
SIMPLE_NAME="${1}"
PRETTY_NAME=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f1)
echo "${PRETTY_NAME}"
}
function validate_release() {
local DISPLAY_NAME=""
local RELEASE_GENERATOR=""
local RELEASES=""
DISPLAY_NAME="$(pretty_name "${OS}")"
case ${OS} in
*ubuntu-server*) RELEASE_GENERATOR="releases_ubuntu-server";;
*ubuntu*) RELEASE_GENERATOR="releases_ubuntu";;
*) RELEASE_GENERATOR="${1}";;
esac
RELEASES=$(${RELEASE_GENERATOR})
if [[ ! " ${RELEASES[*]} " =~ " ${RELEASE} " ]]; then
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release.\n"
echo -n "${RELEASES}"
exit 1
fi
}
function list_json() {
# Reference: https://stackoverflow.com/a/67359273
list_csv | jq -R 'split(",") as $h|reduce inputs as $in ([]; . += [$in|split(",")|. as $a|reduce range(0,length) as $i ({};.[$h[$i]]=$a[$i])])'
exit 0
}
function list_csv() {
local DISPLAY_NAME
local DL="wget"
local DOWNLOADER
local FUNC
local OPTION
local OS
local PNG
local RELEASE
local SVG
local HAS_ZSYNC=0
# Check if zsync is available
if command -v zsync &>/dev/null; then
HAS_ZSYNC=1
fi
echo "Display Name,OS,Release,Option,Downloader,PNG,SVG"
for OS in $(os_support); do
DISPLAY_NAME="$(pretty_name "${OS}")"
case ${OS} in
*ubuntu-server*) FUNC="ubuntu-server";;
*ubuntu*) FUNC="ubuntu";;
*) FUNC="${OS}";;
esac
PNG="https://quickemu-project.github.io/quickemu-icons/png/${FUNC}/${FUNC}-quickemu-white-pinkbg.png"
SVG="https://quickemu-project.github.io/quickemu-icons/svg/${FUNC}/${FUNC}-quickemu-white-pinkbg.svg"
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
if [[ "${OS}" == *"ubuntu"* ]] && [ "${RELEASE}" == "devel" ] && [ ${HAS_ZSYNC} -eq 1 ]; then
DOWNLOADER="zsync"
else
DOWNLOADER="${DL}"
fi
# If the OS has an editions_() function, use it.
if [[ $(type -t "editions_${OS}") == function ]]; then
for OPTION in $(editions_"${OS}"); do
echo "${DISPLAY_NAME},${OS},${RELEASE},${OPTION},${DOWNLOADER},${PNG},${SVG}"
done
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
echo "${DISPLAY_NAME},${OS},${RELEASE},${OPTION},${DOWNLOADER},${PNG},${SVG}"
done
else
echo "${DISPLAY_NAME},${OS},${RELEASE},,${DOWNLOADER},${PNG},${SVG}"
fi
done
done
exit 0
}
list_supported() {
# output OS RELEASE EDITION (usefull for straight testing...)
local DL=""
local FUNC
local OPTION
local OS
for OS in $(os_support); do
case ${OS} in
*ubuntu-server*) FUNC="ubuntu-server";;
*ubuntu*) FUNC="ubuntu";;
*) FUNC="${OS}";;
esac
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
# If the OS has an editions_() function, use it.
if [[ $(type -t "editions_${OS}") == function ]]; then
for OPTION in $(editions_"${OS}"); do
echo "${OS} ${RELEASE} ${OPTION}"
done
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
echo "${OS} ${RELEASE} ${OPTION}"
done
else
echo "${OS} ${RELEASE}"
fi
done
done
exit 0
}
list_isos() {
local showIsoUrl=on
local DIR="/dev/null"
local URL
local FUNC
local OPTION
local OS
for OS in $(os_support); do
case ${OS} in
*ubuntu-server*) FUNC="ubuntu-server";;
*ubuntu*) FUNC="ubuntu";;
*) FUNC="${OS}";;
esac
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
if [[ $(type -t "editions_${OS}") == function ]]; then
for OPTION in $(editions_"${OS}"); do
validate_release releases_"${OS}"
get_"${OS}" "${OPTION}" | cut_1 || echo "ERROR! - ${OS} ${RELEASE} ${OPTION}"
done
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
echo "skipped: ${OS} ${RELEASE} ${OPTION}"
#validate_release releases_${OS}
#get_${OS} ${OPTION} | cut_1
done
#TODO NEEDED?
elif [[ "${OS}" == "macos" ]]; then
validate_release releases_"${OS}"
get_macos || echo "ERROR! - ${OS} ${RELEASE} ${OPTION}"
elif [[ "${OS}" == *"ubuntu"* ]]; then
validate_release releases_ubuntu
get_ubuntu || echo "ERROR! - ${OS} ${RELEASE}"
elif [[ "${OS}" == *"ubuntu-server"* ]]; then
validate_release releases_ubuntu
get_ubuntu-server || echo "ERROR! - ${OS} ${RELEASE}"
else
validate_release releases_"${OS}"
get_"${OS}" "${RELEASE}" | cut_1 || echo "ERROR! - ${OS} ${RELEASE}"
fi
done
done
exit 0
}
test_isos() {
local testIsoUrl=on
local DIR="/dev/null"
local FUNC
local OPTION
local OS
check_it() {
validate_release releases_"${OS}"
URL=$(get_"${OS}" "${OPTION}" | cut_1)
GOOD=$(timeout 3 wget -q --spider "${URL}" && echo 'OK' || echo 'ERROR!')
}
for OS in $(os_support); do
local GOOD=""
case "${OS}" in
*ubuntu-server*) FUNC="ubuntu-server";;
*ubuntu*) FUNC="ubuntu";;
*) FUNC="${OS}";;
esac
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
if [[ $(type -t "editions_${OS}") == function ]]; then
for OPTION in $(editions_"${OS}"); do
check_it
done
elif [[ "${OS}" == "windows"* ]]; then
# skipping because of microsoft
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
GOOD='ERROR!'
done
elif [[ "${OS}" == *"ubuntu"* ]]; then
URL=$(get_"${OS}" )
GOOD=$(timeout 3 wget -q --spider "${URL}" && echo 'OK' || echo 'ERROR!')
elif [[ "${OS}" == *"ubuntu-server"* ]]; then
URL="$(get_ubuntu-server)"
GOOD=$(timeout 3 wget -q --spider "${URL}" && echo 'OK' || echo 'ERROR!')
else
validate_release releases_"${OS}"
URL=$(get_"${OS}" "${RELEASE}" | cut_1)
GOOD=$(timeout 3 wget -q --spider "${URL}" && echo 'OK' || echo 'ERROR!')
fi
if [[ "${GOOD}" == "OK" ]]; then
echo "OK - ${OS} ${RELEASE} ${OPTION} ${URL}"
else
echo "ERROR - ${OS} ${RELEASE} ${OPTION} ${URL}"
fi
done
done
exit 0
}
function os_support() {
echo alma \
alpine \
android \
antix \
archlinux \
archcraft \
arcolinux \
artixlinux \
athenaos \
batocera \
bazzite \
biglinux \
blendos \
bodhi \
bunsenlabs \
cachyos \
centos-stream \
chimeralinux \
crunchbang++ \
debian \
deepin \
devuan \
dragonflybsd \
easyos \
edubuntu \
elementary \
endeavouros \
endless \
fedora \
freebsd \
freedos \
garuda \
gentoo \
ghostbsd \
gnomeos \
guix \
haiku \
holoiso \
kali \
kdeneon \
kolibrios \
kubuntu \
linuxlite \
linuxmint \
lmde \
mageia \
manjaro \
mxlinux \
netboot \
netbsd \
nitrux \
nixos \
lubuntu \
macos \
openbsd \
openindiana \
opensuse \
oraclelinux \
peppermint \
parrotsec \
popos \
porteus \
primtux \
pureos \
reactos \
rebornos \
rockylinux \
siduction \
slackware \
slax \
slint \
slitaz \
solus \
sparkylinux \
spirallinux \
tails \
tinycore \
trisquel \
truenas-core \
truenas-scale \
tuxedo-os \
ubuntu \
ubuntu-budgie \
ubuntucinnamon \
ubuntukylin \
ubuntu-mate \
ubuntu-server \
ubuntustudio \
ubuntu-unity \
vanillaos \
void \
vxlinux \
windows \
windows-server \
xerolinux \
xubuntu \
zorin
}
function os_homepage(){
local SIMPLE_NAME=""
local HOMEP=""
SIMPLE_NAME="${1}"
HOMEP=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f4)
echo "$HOMEP"
}
function os_homepages(){
local SIMPLE_NAME=""
local HOMEPAGE=""
SIMPLE_NAME="${1}"
case ${SIMPLE_NAME} in
alma) HOMEPAGE="https://almalinux.org/";;
alpine) HOMEPAGE="https://alpinelinux.org/";;
android) HOMEPAGE="https://www.android-x86.org/";;
antix) HOMEPAGE="https://antixlinux.com/";;
archlinux) HOMEPAGE="https://archlinux.org/";;
archcraft) HOMEPAGE="https://archcraft.io/";;
arcolinux) HOMEPAGE="https://arcolinux.com/";;
artixlinux) HOMEPAGE="https://artixlinux.org/";;
athenaos) HOMEPAGE="https://athenaos.org/";;
batocera) HOMEPAGE="https://batocera.org/";;
bazzite) HOMEPAGE="https://bazzite.gg/";;
biglinux) HOMEPAGE="https://www.biglinux.com.br/";;
blendos) HOMEPAGE="https://blendos.co/";;
bodhi) HOMEPAGE="https://www.bodhilinux.com/";;
bunsenlabs) HOMEPAGE="https://www.bunsenlabs.org/";;
cachyos) HOMEPAGE="https://cachyos.org/";;
centos-stream) HOMEPAGE="https://www.centos.org/centos-stream/";;
chimeralinux) HOMEPAGE="https://chimera-linux.org/";;
crunchbang++) HOMEPAGE="https://www.crunchbangplusplus.org/";;
debian) HOMEPAGE="https://www.debian.org/";;
deepin) HOMEPAGE="https://www.deepin.org/";;
devuan) HOMEPAGE="https://www.devuan.org/";;
dragonflybsd) HOMEPAGE="https://www.dragonflybsd.org/";;
easyos) HOMEPAGE="https://easyos.org/";;
edubuntu) HOMEPAGE="https://www.edubuntu.org/";;
elementary) HOMEPAGE="https://elementary.io/";;
endeavouros) HOMEPAGE="https://endeavouros.com/";;
endless) HOMEPAGE="https://www.endlessos.org/os";;
fedora) HOMEPAGE="https://www.fedoraproject.org/";;
freebsd) HOMEPAGE="https://www.freebsd.org/";;
freedos) HOMEPAGE="https://freedos.org/";;
garuda) HOMEPAGE="https://garudalinux.org/";;
gentoo) HOMEPAGE="https://www.gentoo.org/";;
ghostbsd) HOMEPAGE="https://www.ghostbsd.org/";;
gnomeos) HOMEPAGE="https://os.gnome.org/";;
guix) HOMEPAGE="https://guix.gnu.org/";;
haiku) HOMEPAGE="https://www.haiku-os.org/";;
holoiso) HOMEPAGE="https://github.com/HoloISO/holoiso";;
kali) HOMEPAGE="https://www.kali.org/";;
kdeneon) HOMEPAGE="https://neon.kde.org/";;
kolibrios) HOMEPAGE="http://kolibrios.org/en/";;
kubuntu) HOMEPAGE="https://kubuntu.org/";;
linuxlite) HOMEPAGE="https://www.linuxliteos.com/";;
linuxmint) HOMEPAGE="https://linuxmint.com/";;
lmde) HOMEPAGE="https://www.linuxmint.com/download_lmde.php";;
mageia) HOMEPAGE="https://www.mageia.org/";;
manjaro) HOMEPAGE="https://manjaro.org/";;
mxlinux) HOMEPAGE="https://mxlinux.org/";;
netboot) HOMEPAGE="https://netboot.xyz/";;
netbsd) HOMEPAGE="https://www.netbsd.org/";;
nitrux) HOMEPAGE="https://nxos.org/";;
nixos) HOMEPAGE="https://nixos.org/";;
lubuntu) HOMEPAGE="https://lubuntu.me/";;
macos) HOMEPAGE="https://www.apple.com/macos/";;
openbsd) HOMEPAGE="https://www.openbsd.org/";;
openindiana) HOMEPAGE="https://www.openindiana.org/";;
opensuse) HOMEPAGE="https://www.opensuse.org/";;
oraclelinux) HOMEPAGE="https://www.oracle.com/linux/";;
parrotsec) HOMEPAGE="https://www.parrotsec.org/";;
peppermint) HOMEPAGE="https://peppermintos.com/";;
popos) HOMEPAGE="https://pop.system76.com/";;
porteus) HOMEPAGE="http://www.porteus.org/";;
primtux) HOMEPAGE="https://primtux.fr/";;
pureos) HOMEPAGE="https://www.pureos.net/";;
reactos) HOMEPAGE="https://reactos.org/";;
rebornos) HOMEPAGE="https://rebornos.org/";;
rockylinux) HOMEPAGE="https://rockylinux.org/";;
siduction) HOMEPAGE="https://siduction.org/";;
slackware) HOMEPAGE="http://www.slackware.com/";;
slax) HOMEPAGE="https://www.slax.org/";;
slint) HOMEPAGE="https://slint.fr/";;
slitaz) HOMEPAGE="https://www.slitaz.org/";;
solus) HOMEPAGE="https://getsol.us/";;
sparkylinux) HOMEPAGE="https://sparkylinux.org/";;
spirallinux) HOMEPAGE="https://spirallinux.github.io/";;
tails) HOMEPAGE="https://tails.net/";;
tinycore) HOMEPAGE="http://www.tinycorelinux.net/";;
trisquel) HOMEPAGE="https://trisquel.info/";;
truenas-core) HOMEPAGE="https://www.truenas.com/truenas-core/";;
truenas-scale) HOMEPAGE="https://www.truenas.com/truenas-scale/";;
tuxedo-os) HOMEPAGE="https://www.tuxedocomputers.com";;
ubuntu) HOMEPAGE="https://ubuntu.com/";;
ubuntu-budgie) HOMEPAGE="https://ubuntubudgie.org/";;
ubuntucinnamon) HOMEPAGE="https://ubuntucinnamon.org/";;
ubuntukylin) HOMEPAGE="https://ubuntukylin.com/";;
ubuntu-mate) HOMEPAGE="https://ubuntu-mate.org/";;
ubuntu-server) HOMEPAGE="https://ubuntu.com/server";;
ubuntustudio) HOMEPAGE="https://ubuntustudio.org/";;
ubuntu-unity) HOMEPAGE="https://ubuntuunity.org/";;
vanillaos) HOMEPAGE="https://vanillaos.org/";;
void) HOMEPAGE="https://voidlinux.org/";;
vxlinux) HOMEPAGE="https://vxlinux.org/";;
windows) HOMEPAGE="https://www.microsoft.com/en-us/windows/";;
windows-server) HOMEPAGE="https://www.microsoft.com/en-us/windows-server/";;
xerolinux) HOMEPAGE="https://xerolinux.xyz/";;
xubuntu) HOMEPAGE="https://xubuntu.org/";;
zorin) HOMEPAGE="https://zorin.com/os/";;
esac
echo "${HOMEPAGE}"
}
# Get string before first whitespace (HASH)
function cut_1() {
cut -d' ' -f1
}
function releases_alma() {
echo 9 8
}
function editions_alma() {
echo boot minimal dvd
}
function releases_alpine() {
echo latest 3.18 3.17 3.16 3.15 3.14 3.13 3.12
}
function releases_android() {
echo 9.0 8.1 7.1
}
function editions_android() {
echo x86_64 x86
}
function releases_antix() {
echo 23 22 21
}
function editions_antix() {
echo net-sysv core-sysv base-sysv full-sysv net-runit core-runit base-runit full-runit
}
function releases_archlinux() {
echo latest
}
function releases_archcraft() {
echo latest
}
function releases_arcolinux() {
local RLIST
RLIST=$(curl -s https://ant.seedhost.eu/arcolinux/iso/ | grep -o -E ">v[[:digit:]]{2}.[[:digit:]]{2}.[[:digit:]]{2}" | sed -e "s/>//" | tr '\r\n' ' ')
echo ${RLIST}
}
function editions_arcolinux() {
echo large small
}
function releases_artixlinux() {
echo stable
}
function editions_artixlinux() {
echo base-dinit \
base-openrc \
base-runit \
base-s6 \
cinnamon-dinit \
cinnamon-openrc \
cinnamon-runit \
cinnamon-s6 \
lxde-dinit \
lxde-openrc \
lxde-runit \
lxde-s6 \
lxqt-dinit \
lxqt-openrc \
lxqt-runit \
lxqt-s6 \
mate-dinit \
mate-openrc \
mate-runit \
mate-s6 \
plasma-dinit \
plasma-openrc \
plasma-runit \
plasma-s6 \
xfce-dinit \
xfce-openrc \
xfce-runit \
xfce-s6 \
community-gtk-openrc \
community-qt-openrc
}
function releases_athenaos() {
wget -q -O- 'https://sourceforge.net/projects/athena-iso/rss?path=/' | grep '.iso/download"' | cut -d'=' -f5 | cut -d'"' -f2 | cut -d'/' -f7 | cut -d'v' -f2 | sed ':a;N;$!ba;s/\n/ /g'
}
function releases_bazzite() {
echo $(wget -q -O- "https://api.github.com/repos/ublue-os/bazzite/releases" | grep 'download_url' | grep 'sum' | cut -d '/' -f8 | cut -d'v' -f2 | tr '\n' ' ')
}
function releases_biglinux() {
echo kde
}
function releases_blendos() {
echo latest
}
function editions_blendos() {
wget -q https://sourceforge.net/projects/blendos/rss?path=/ISOs/ -O- | grep -E -o 'https://.*blendOS\.iso.*</media:hash' >/tmp/blendos-isos.rss
local BLENDOS_EDITIONS
BLENDOS_EDITIONS="$(grep -E -o 'https://.*blendOS\.iso.*</media:hash' /tmp/blendos-isos.rss | cut -d '/' -f 8 | sort | uniq | tr '\n' ' ')"
echo "${BLENDOS_EDITIONS}"
}
function releases_bunsenlabs() {
echo latest
}
function releases_bodhi() {
echo 7.0.0
}
function editions_bodhi() {
echo standard hwe s76
}
function releases_cachyos() {
echo latest
}
function editions_cachyos() {
echo kde gnome
}
function releases_centos-stream() {
echo 9 8
}
function editions_centos-stream() {
echo boot dvd1
}
function releases_chimeralinux() {
echo latest
}
function editions_chimeralinux() {
echo base gnome
}
function releases_crunchbang++() {
echo 12 11 10 9 8
}
function releases_debian() {
DEBCURRENT=$(wget -q https://cdimage.debian.org/debian-cd/ -O- |grep '\.[0-9]/'|cut -d\> -f9|cut -d\/ -f1)
local DEBOLD=$(wget -q https://cdimage.debian.org/cdimage/archive/ -O- |grep -e '>[1-9][0-9]\.'|grep -v 'live' | cut -d\> -f9|cut -d\/ -f1 )
echo ${DEBOLD} ${DEBCURRENT}
}
function editions_debian() {
echo standard cinnamon gnome kde lxde lxqt mate xfce netinst
}
function releases_deepin() {
echo 20.7 20.6 20.5 20.4 20.3 20.2.4 20.2.3 20.2.2 20.2.1 20.2 20.1 20
}
function releases_devuan() {
echo beowulf chimaera daedalus
}
function releases_dragonflybsd() {
# If you remove "".bz2" from the end of the searched URL, you will get only the current release - currently 6.4.0
# We could add a variable so this behaviour is optional/switchable (maybe from option or env)
DBSD_RELEASES=$(curl -sL http://mirror-master.dragonflybsd.org/iso-images/ | grep -E -o '"dfly-x86_64-.*_REL.iso.bz2"' | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' | tr '\n' ' ')
echo "$DBSD_RELEASES"
}
function releases_easyos() {
#local RLIST
#RLIST=$(curl -s https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/2023/ | grep 'href="' | tail +2 | cut -d'/' -f1 | cut -d'"' -f6)
#RLIST=$(wget -q -O- 'https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/2023/' | grep 'href="' | tail +2 | cut -d'/' -f1 | cut -d'"' -f6)
#echo ${RLIST}
# Not dynamic for now
echo 5.7 5.6.7 5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.5.5 5.5.4
}
function releases_elementary() {
echo 7.1 7.0
}
function releases_endeavouros() {
local ENDEAVOUR_RELEASES="$(curl -s https://mirror.alpix.eu/endeavouros/iso/ | LC_ALL="en_US.UTF-8" sort -Mr | grep -o -P '(?<=<a href=").*(?=.iso">)' | grep -v 'x86_64' | cut -c 13- | tr '\n' ' ')"
echo "${ENDEAVOUR_RELEASES,,}"
}
function releases_endless() {
echo 5.0.0
}
function editions_endless() {
echo base en fr pt_BR es
}
function releases_fedora() {
echo 39 38
}
function releases_batocera() {
echo latest
}
function editions_fedora() {
echo Workstation \
Budgie \
Cinnamon \
i3 \
KDE \
LXDE \
LXQt \
Mate \
Xfce \
Silverblue \
Sericea \
Kinoite \
Sway \
Server \
Onyx
}
function releases_freebsd(){
local FBSD_RELEASES=$(curl -sL https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/|grep -e 'class="link"' |grep -v '\.\.'|cut -d\" -f4|tr -d '/' | tr '\n' ' ')
echo "${FBSD_RELEASES}"
}
function editions_freebsd(){
echo disc1 dvd1
}
function releases_freedos() {
echo 1.3 1.2
}
function releases_garuda() {
echo latest
}
function editions_garuda() {
echo cinnamon dr460nized dr460nized-gaming gnome i3 kde-git kde-lite lxqt-kwin mate qtile sway wayfire xfce
}
function releases_gentoo() {
echo latest
}
function editions_gentoo() {
echo minimal livegui
}
function releases_ghostbsd() {
echo 22.01.12 21.11.24 21.10.16
}
function editions_ghostbsd() {
echo mate xfce
}
function releases_gnomeos() {
local GNOMEOS_RELEASES=""
GNOMEOS_RELEASES="$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr | tr '\n' ' ')"
echo nightly "${GNOMEOS_RELEASES}"
}
function releases_guix() {
echo 1.4.0 1.3.0
}
function releases_haiku() {
echo r1beta4 r1beta3
}
function editions_haiku() {
echo x86_64 x86_gcc2h
}
function releases_holoiso() {