How to set proxy for pacman?

Sometimes I need to use a proxy to update the system
Can i set proxy for pacman -Syu?
Thanks

1 Like

I have never done this myself so I might not be able to assist you further. However, I found this in ArchWiki which looks like what you want to accomplish:

https://wiki.archlinux.org/title/Proxy_server#Environment_variables

3 Likes

Thank you, solved
If set proxy in /etc/environment ,do I have to set up a proxy in privoxy config ,also?

1 Like

My guess would be that you might not need to but as said before I have never tried this combination so I cannot tell for sure. Perhaps other forum members with more experience in this area could give you a more adequate and accurate answer.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.