0
2

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.

Ansible yum rpm "No Package matching〜"

Posted at

結論

yumモジュールの引数を、state: latest -> state: present にしよう!

事象

rpmファイルを対象にyumモジュールでインストールしようとすると、
No Package matching '(rpmファイル名)' found available, installed or updated というエラーが出る

原因

state: latest を指定すると何が何でもその名前でリポジトリに取りに行ってしまう様子。
なので、ファイルが存在しようが関係なくこのエラーが発生する。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?