mariaDB をcentOS6系で使うにはリポジトリファイルの作成が必要だということで
こちらのサイト様の記事を参考に進めてみましたが
yum list mariadb*
でエラー: 表示するパッケージはありません
となってしまいました。
手順としては
root@localhost/etc/yum.repos.d/mariadb.repo
となるようにputtyにてmkdirでフォルダを作っていって
cd コマンドでmariadb.repoフォルダにはいって
vi /etc/yum.repos.d/mariadb.repo ```として viエディタが立ち上がったので 入力モード(iを押す)にして入力項目をペーストして
MariaDB 10.1 CentOS repository list - created 2018-01-16 05:59 UTC
http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-ppc64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1語を入力
としてコマンドもーどにescで戻り :wq!と入力後enterで保存 確認のため yum list mariadb* と実行したところ
[root@localhost mariadb.repo]# yum list mariadb*
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
- base: ftp.iij.ad.jp
- epel: ftp.jaist.ac.jp
- extras: ftp.iij.ad.jp
- remi-safe: mirror.bebout.net
- updates: ftp.iij.ad.jp
エラー: 表示するパッケージはありません
となってしまいました。 意図した結果は
[root@localhost tmp]# yum list MariaDB*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: www.ftp.ne.jp
- epel: ftp.riken.jp
- extras: www.ftp.ne.jp
- remi-safe: repo1.sea.innoscale.net
- updates: www.ftp.ne.jp
Installed Packages
MariaDB-cassandra-engine.x86_64 10.1.19-1.el6 @mariadb
MariaDB-client.x86_64 10.1.19-1.el6 @mariadb
MariaDB-common.x86_64 10.1.19-1.el6 @mariadb
MariaDB-compat.x86_64 10.1.19-1.el6 @mariadb
MariaDB-connect-engine.x86_64 10.1.19-1.el6 @mariadb
MariaDB-devel.x86_64 10.1.19-1.el6 @mariadb
MariaDB-gssapi-client.x86_64 10.1.19-1.el6 @mariadb
MariaDB-gssapi-server.x86_64 10.1.19-1.el6 @mariadb
MariaDB-oqgraph-engine.x86_64 10.1.19-1.el6 @mariadb
MariaDB-server.x86_64 10.1.19-1.el6 @mariadb
MariaDB-shared.x86_64 10.1.19-1.el6 @mariadb
MariaDB-test.x86_64 10.1.19-1.el6 @mariadb
となるはずなんですが 上手くいきませんでした。 何か手順を間違えていますかね? 気が付いた方ご教示いただけるとたすかります。 よろしくお願いします。 追記 --- etcディレクトリをmkdirで作って以下の階層に配置したことが原因かとおもったのですがetcを作る前にやはりetcディレクトリにいけなかったんですよねそういえば。 etcディレクトリがないってことはありえないですよね?
[root@localhost ~]# cd yum.repos.d
-bash: cd: yum.repos.d: そのようなファイルやディレクトリはありません
[root@localhost ~]# cd etc
-bash: cd: etc: そのようなファイルやディレクトリはありません
[root@localhost ~]# mkdir etc
[root@localhost ~]# pwd
/root
[root@localhost ~]# cd etc
[root@localhost etc]# mkdir yum.repos.d
[root@localhost etc]# cd yum.repos.d
[root@localhost yum.repos.d]# pwd
/root/etc/yum.repos.d
[root@localhost yum.repos.d]# mkdir mariadb.repo
[root@localhost yum.repos.d]# cd mariadb.repo
[root@localhost mariadb.repo]# vi mariadb.repo
SCLにてMariaDBをインストールしたところlistには反映されるようになりました。
[vagrant@localhost ~]$ yum list MariaDB*
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 6.5 kB 00:00
- base: ftp.tsukuba.wide.ad.jp
- epel: mirror01.idc.hinet.net
- extras: ftp.tsukuba.wide.ad.jp
- remi-safe: mirror.bebout.net
- updates: ftp.tsukuba.wide.ad.jp
base | 3.7 kB 00:00
centos-sclo-rh | 3.0 kB 00:00
centos-sclo-sclo | 2.9 kB 00:00
epel | 4.7 kB 00:00
epel/primary_db | 6.0 MB 00:01
extras | 3.4 kB 00:00
http://yum.mariadb.org/10.1/centos6-ppc64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
他のミラーを試します。
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Re d Hat Support.
mysql-connectors-community | 2.5 kB 00:00
mysql-tools-community | 2.5 kB 00:00
mysql56-community | 2.5 kB 00:00
nodesource | 2.5 kB 00:00
remi-safe | 2.9 kB 00:00
remi-safe/primary_db | 932 kB 00:01
updates | 3.4 kB 00:00
利用可能なパッケージ
mariadb55.x86_64 1.1-17.sc1.el6 centos-sclo-rh
mariadb55-build.x86_64 1.1-17.sc1.el6 centos-sclo-rh
mariadb55-mariadb.x86_64 5.5.53-1.el6 centos-sclo-rh
mariadb55-mariadb-bench.x86_64 5.5.53-1.el6 centos-sclo-rh
mariadb55-mariadb-devel.x86_64 5.5.53-1.el6 centos-sclo-rh
mariadb55-mariadb-libs.x86_64 5.5.53-1.el6 centos-sclo-rh
mariadb55-mariadb-server.x86_64 5.5.53-1.el6 centos-sclo-rh
mariadb55-mariadb-test.x86_64 5.5.53-1.el6 centos-sclo-rh
mariadb55-runtime.x86_64 1.1-17.sc1.el6 centos-sclo-rh
mariadb55-scldevel.x86_64 1.1-17.sc1.el6 centos-sclo-rh
[vagrant@localhost ~]$
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/16 14:11
2018/01/16 14:36
2018/01/16 14:55
2018/01/16 14:59
2018/01/16 15:03
2018/01/16 15:07
2018/01/16 15:09
2018/01/16 15:11
2018/01/16 15:13
2018/01/16 15:15
2018/02/03 01:48 編集
2018/02/03 02:00
2018/02/04 15:15
2018/02/04 15:24
2018/02/08 03:36