To be clear that we're all on the same page...
In order to use "wget" from a SME server with a mandatory upstream proxy, first you must configure squid to use the upstream proxy
config set SquidParent a.b.c.d
config set SquidParentPort nnn
signal-event post-upgrade
signal-event reboot
Then you must set a value for the "HTTP_PROXY" environment variable and use "wget":
export http_proxy=localhost:3128
wget <desired download URL>
Note that the "export" command is ephemeral, and is only valid for the currently active shell session - new shells will not inherit this value. Also, when I was testing I found that "http_proxy" worked in lower case but not in upper case. If "http_proxy" is set correctly,
wget will report
Connecting to localhost|127.0.0.1|:3128... connected. before downloading your file. More info can be found at
http://www.editcorp.com/Personal/Lars_Appel/wget/wget_8.htmlYou should also be able to get wget to work by pointing it directly to the upstream proxy, but the above is the end result of the advice you've received so far.
In order to get YUM to work through a mandatory proxy, you will need to add a line to /etc/yum.conf in the [main] section pointing to the upstream proxy (or, possibly, pointing to "localhost:3128" if you have configured squid to use the upstream proxy).
As with all modifications requiring templating, you *can* *test* this by editing the config file directly -- once you find the configuration that works you will need to incorporate that into one or more custom template fragment(s) for the config files you have edited.
A quick google search for "yum upstream proxy" turned up this post giving an example of how to configure yum.conf to use an upstream proxy:
http://www.linuxquestions.org/questions/fedora-35/yum-behind-proxy-server-496726/ As in that example, you need to add "http_proxy=..." (and possibly "proxy_username=..." and "proxy_password=...", depending on your upstream proxy requirements) to /etc/yum.conf just after [main] and just before cachedir=...
You can edit the yum config manually using
pico -w /etc/yum.conf (the "-w" is important, and prevents pico from wrapping the text in your config files).
If yum gives you an error after you make your edits (indicating a possible typo in your modifications), you can return to the current config using
expand-template /etc/yum.confIf you are uncomfortable creating custom template fragments, edit the file manually as described above, post your working config back here, and we'll tell you how to get that into a custom template fragment so that your changes will survive reboots and updates.