何らかの理由で、古いパッケージをインストールしたい時のためのメモ。
yum で利用可能な古いパッケージを探すには、--showduplicates オプションを付加して検索する。
利用可能なパッケージは、RHELとCentOSでは、動作が異なるらしい。
RHEL :過去のバージョン全てを利用可能(たぶん、全てと思われる)
CentOS:過去のバージョンの一部
RHEL 6.10の例
$ yum search --showduplicates nmap ・・・略 2:nmap-5.21-3.el6.x86_64 : Network exploration tool and security scanner 2:nmap-5.21-4.el6.x86_64 : Network exploration tool and security scanner 2:nmap-5.51-2.el6.x86_64 : Network exploration tool and security scanner 2:nmap-5.51-3.el6.x86_64 : Network exploration tool and security scanner 2:nmap-5.51-4.el6.x86_64 : Network exploration tool and security scanner 2:nmap-5.51-6.el6.x86_64 : Network exploration tool and security scanner 2:nmap-5.51-6.el6.x86_64 : Network exploration tool and security scanner
CentOS 6.10の例
$ yum search --showduplicates nmap ・・・略 2:nmap-frontend-5.51-6.el6.noarch : The GTK+ front end for nmap 2:nmap-5.51-6.el6.x86_64 : Network exploration tool and security scanner 2:nmap-5.51-6.el6.x86_64 : Network exploration tool and security scanner
CentOSの場合、パッケージによって利用可能なバージョンの数が異なる模様。
$ yum search --showduplicates firefox
・・・略
firefox-52.8.0-1.el6.centos.i686 : Mozilla Firefox Web browser
firefox-52.8.0-1.el6.centos.x86_64 : Mozilla Firefox Web browser
firefox-60.1.0-5.el6.centos.i686 : Mozilla Firefox Web browser
firefox-60.1.0-5.el6.centos.x86_64 : Mozilla Firefox Web browser
firefox-60.1.0-6.el6.centos.i686 : Mozilla Firefox Web browser
firefox-60.1.0-6.el6.centos.x86_64 : Mozilla Firefox Web browser
firefox-60.1.0-6.el6.centos.x86_64 : Mozilla Firefox Web browser
インストールの際は、パッケージ名のみでなく、バージョンまで含めて指定するとインストールできる。
# yum install firefox-52.8.0-1.el6.centos.x86_64