1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

dnfをProxy環境下で使う

Posted at

今回はVirtualBox上に構築したOracle Linux での設定です。
社内環境下などで、Proxyの設定が必要でdnfエラーとなってしまう場合は試してみてください。

設定ファイルを修正する

/etc/dnf/dnf.confこちらのファイルを修正します。
[main]の最下部に以下を追記

proxy=http://<ユーザ名>:<パスワード>@<proxy_ip>:<proxy_port>
proxy=https://<ユーザ名>:<パスワード>@<proxy_ip>:<proxy_port>
// 例
proxy=http://user_name:user_password@192.168.xx.xx:8080

おわりに

意外と簡単。ただ簡単には気付けない。
場数を経験して、だいたいProxyだろうなと分かるようになっていきたい。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?