Ask Your Question
1

How to unset proxy with dnf config-manager?

asked 2015-09-30 10:35:48 -0500

pingwen gravatar image

dnf makes it possible to configure a proxy with eg:

dnf config-manager --setopt proxy=http://proxy.example.com:3128/ repo1 repo2 --save

I'd like to unset that proxy with dnf, but this is not documented in http://dnf-plugins-core.readthedocs.org/en/latest/config_manager.html. I tried this, but it does not work:

$ sudo dnf config-manager --setopt proxy="" --save
Config error: Error parsing "proxy = u''": URL must be http, ftp or https not ""

Any idea?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-30 12:28:36 -0500

florian gravatar image

edit /etc/dnf/dnf.conf and comment (#) or delete the line defining your proxy.

edit flag offensive delete link more

Comments

1

This is not enough: you also need to comment or delete the proxy option in all the repository files under /etc/yum.repos.d

That's why I was asking for a solution with dnf config-manager...

pingwen gravatar imagepingwen ( 2015-10-01 10:11:01 -0500 )edit

Only if you put the proxy line in there. By default a repo file does not have any proxy information, and the easiest way to set it is dnf.conf. No need to mess around in each and every of your .repo file

florian gravatar imageflorian ( 2015-10-01 12:25:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-09-30 10:35:48 -0500

Seen: 2,402 times

Last updated: Sep 30 '15