0
1

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.

yumモジュールを使わずrpmでパッケージ追加したい

Last updated at Posted at 2019-03-26

何らかの事情でyumモジュールが使えない
もしくはshellモジュールでrpmで入れる必要がある人向け

    - name: package-x.x.x.xxxのインストールチェック
      shell: rpm -qa | grep package-x.x.x.xxx
      register: rpm
      failed_when: rpm.rc >= 2
    - name: package-x.x.x.xxx.rpmのインストール
      shell: rpm -ivh package-x.x.x.xxx.rpm
      when: rpm.stdout.find('package-x.x.x.xxx') == -1

他にもやり方はあるだろうけどとりあえずはこれで

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?