Pacman with proxy

I need help configuring pacman to run through a proxy server. I currently can’t install anything or even update.

[Might be unrelated]

As per protocol i can’t post any inxi since my system has been hanging with the new kernels since somewhere around last month. I have buggy HP bios, been that way from F71 to F77 which I think is when they updated it for the Windows 11 TPM requirement. I couldn’t start if for months until I realised I had to hold ESC to halt the boot-up process, and that works less that 10% of the time. It now operates with the TPM device hidden in bios.

Hi

look at 2. Environment variables

sudo bash
[sudo] password for daniel:
[root@cachyos-x8664 daniel]# export http_proxy=http://192.168.122.34:9090
[root@cachyos-x8664 daniel]# pacman -Syu

Does this look right to you? It’s still not working. It can’t seem to synchronise packages

export http_proxy=http://192.168.122.34:9090/
export https_proxy=$http_proxy
pacman -Suy


this looks better

Thanks, you really helped