7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RPMのプロキシ設定をコマンドオプションではなくファイルに設定する

7
Posted at

rpmをプロキシ環境下で利用するにはコマンドオプションで実行するには

rpm --httpproxy proxy_ip --httpport port_num

としますがシェルに埋め込まれていてコマンドオプションを付けられないときには/usr/lib/rpm/macrosの中に設定する場所があるのでコメントを外して

#       The port and machine name of an HTTP proxy host.
#
%_httpport port_num
%_httpproxy proxy_ip

とする。
パスは環境によって多少ちがうかも。

7
6
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
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?