This Magisk Module contains wget2 for Android .

ASUS_I006D:/ $ wget2 --version
GNU Wget2 2.1.0 - multithreaded metalink/file/website downloader

+digest +https +ssl/openssl +ipv6 +iri +large-file -nls -ntlm -opie +psl -hsts
+iconv +idn2 +zlib +lzma +brotlidec +zstd +bzip2 +lzip +http2 -gpgme

Copyright (C) 2012-2015 Tim Ruehsen
Copyright (C) 2015-2024 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Please send bug reports and questions to <bug-wget@gnu.org>.
ASUS_I006D:/ $ 

The binary is installed in /system/usr/bin.

The binary wget2 has been dynamically linked for the OS libraries only, so that the name resolution via DNS works, but no additional libraries are required to use the binary:
i
ASUS_I006D:/data/local/tmp $ ldd /system/usr/bin/wget2
	linux-vdso.so.1 => [vdso] (0x76045c8000)
	libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x7602501000)
	libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x7602f43000)
ASUS_I006D:/data/local/tmp $ 

There is a symbolic link for wget2 and wget in /system/bin

The certificate bundle file used by wget2 is hardcoded in the binary: /system/etc/security/ca-certificates.crt.

The customize script for the Magisk Module creates the file 

/system/etc/security/ca-certificates.crt

with all certificates currently installed in the directory

/system/etc/security/cacerts/


Use the wget parameter --ca-certificate to select another bundle file with certificates; use the wget parameter --no-check-certificate do disable the check of the server certificate.

The default value for the parameter --hsts is "off".


The module also contains the files necessary to use wget in other programs (libwget.so and libwget.a)


History
  27.10.2025 2.2.0-v1.0.0.0 /bs
    initial release of the Magisk Module
 
