Open Source Development

 View Only

 proxy setup in dnf

  • AIX Open Source
Sándor Tóth's profile image
Sándor Tóth posted Thu September 04, 2025 06:22 AM

how can I setup dnf to fetch repo data / rpms through http proxy


#AIXOpenSource
Andrey Klyachkin's profile image
Andrey Klyachkin IBM Champion

Add proxy = http://your_proxy_server:your_proxy_port into /opt/freeware/etc/dnf/dnf.conf to the main options or to repositories where you need it.


#AIXOpenSource
Sándor Tóth's profile image
Sándor Tóth

already tried adding proxy=... to dnf.conf and also setting env variables http(s)_proxy, but none of these works

dnf still wants to connect directly:

AIX generic repository                                                                                                                                                                                0.0  B/s |   0  B     02:00
Errors during downloading metadata for repository 'AIX_Toolbox':
  - Curl error (28): Timeout was reached for https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd… [Connection timed out after 30000 milliseconds]
Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried


#AIXOpenSource