1
0

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 3 years have passed since last update.

IBM Cloud :PowerSystems Virtual Server: AIX デフォルト yum 設定

Last updated at Posted at 2020-11-16

PowerSystems Virtual Server でサービス作成した後に、Cloud 側から提供されているVMイメージに
yum が設定されていることに気づきました。(2020/11時点)


AIX 7.2 TL4 SP1 イメージで確認

# oslevel -s
7200-04-01-1939

yum.conf 確認

yum.conf
# cat /opt/freeware/etc/yum/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1

[AIX_Toolbox]
name=AIX generic repository
baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
enabled=1
gpgcheck=0

[AIX_Toolbox_noarch]
name=AIX noarch repository
baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/
enabled=1
gpgcheck=0


[AIX_Toolbox_72]
name=AIX 7.2 specific repository
baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/
enabled=1
gpgcheck=0

repolist 確認

# yum repolist
AIX_Toolbox                                                                                                | 2.6 kB  00:00:00
AIX_Toolbox/primary_db                                                                                     | 1.7 MB  00:00:00
AIX_Toolbox_72                                                                                             | 2.5 kB  00:00:00
AIX_Toolbox_72/primary_db                                                                                  | 128 kB  00:00:00
AIX_Toolbox_noarch                                                                                         | 2.5 kB  00:00:00
AIX_Toolbox_noarch/primary_db                                                                              |  93 kB  00:00:00
repo id                                                  repo name                                                          status
AIX_Toolbox                                              AIX generic repository                                             2,706
AIX_Toolbox_72                                           AIX 7.2 specific repository                                          223
AIX_Toolbox_noarch                                       AIX noarch repository                                                250
repolist: 3,179


proxy サーバー設定方法

・AIX Toolbox に直接アクセスできない場合、proxy サーバー設定が有効。

・参考:Configuring YUM and creating local repositories on IBM AIX
https://developer.ibm.com/technologies/systems/articles/configure-yum-on-aix/

/opt/freeware/etc/yum/yum.conf に下記の行を記載

proxy=http://<user>:<passwd>@<proxy server hostname>:<port number>

または、CLI で http_proxyをexport する

# export http_proxy=http://<user>:<passwd>@<proxy server hostname>:<port number>

rpm モジュールの導入が容易になりますね。

以上です。

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?