rpmをインストールする時に「依存性の欠如」が出た場合は、yum localinstallを使う

AlmaLinux

rpmをインストールする際に、依存性の欠如が表示された。
そんな時は

yum localinstall [rpmパス]

が便利。

Chromeをrpmからインストールしようとした時に依存性の欠如が発生したので、yum localinstallで対応。

[root@test ~]# ll | grep google
-rw-rw-r-- 1 root root   89956708 10月 14 15:50 google-chrome-stable_current_x86_64.rpm
[root@test ~]# rpm -ivh google-chrome-stable_current_x86_64.rpm
エラー: 依存性の欠如:
    libasound.so.2()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libasound.so.2(ALSA_0.9)(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libasound.so.2(ALSA_0.9.0rc4)(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libatk-bridge-2.0.so.0()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libatspi.so.0()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libdrm.so.2()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    liberation-fonts は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libgbm.so.1()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libgtk-3.so.0()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libvulkan.so.1()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    libxshmfence.so.1()(64bit) は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
    xdg-utils は google-chrome-stable-94.0.4606.81-1.x86_64 に必要とされています
[root@test ~]# yum localinstall google-chrome-stable_current_x86_64.rpm
Repository google-chrome is listed more than once in the configuration
google-chrome                                                                                        7.4 kB/s | 3.5 kB     00:00
依存関係が解決しました。
=====================================================================================================================================
 パッケージ                          アーキテクチャー バージョン                                        リポジトリー           サイズ
=====================================================================================================================================
インストール:
 google-chrome-stable                x86_64           94.0.4606.81-1                                    @commandline            86 M
依存関係のインストール:
 adwaita-cursor-theme                noarch           3.28.0-2.el8                                      appstream              647 k
 adwaita-icon-theme                  noarch           3.28.0-2.el8                                      appstream               11 M
 alsa-lib                            x86_64           1.2.4-5.el8                                       appstream              470 k
 at-spi2-atk                         x86_64           2.26.2-1.el8                                      appstream               89 k
 at-spi2-core                        x86_64           2.28.0-1.el8                                      appstream              169 k
 cairo-gobject                       x86_64           1.15.12-3.el8                                     baseos                  33 k
 colord-libs                         x86_64           1.4.2-1.el8                                       appstream              236 k
 desktop-file-utils                  x86_64           0.23-8.el8                                        appstream               80 k
 glib-networking                     x86_64           2.56.1-1.1.el8                                    baseos                 155 k
 gsettings-desktop-schemas           x86_64           3.32.0-5.el8                                      baseos                 632 k
 gtk3                                x86_64           3.22.30-6.el8                                     appstream              4.5 M
 json-glib                           x86_64           1.4.4-1.el8                                       baseos                 144 k
 libX11-xcb                          x86_64           1.6.8-4.el8                                       appstream               13 k
 libXtst                             x86_64           1.2.3-7.el8                                       appstream               21 k
 libdrm                              x86_64           2.4.103-1.el8                                     appstream              164 k
 libepoxy                            x86_64           1.5.3-1.el8                                       appstream              225 k
 liberation-fonts                    noarch           1:2.00.3-7.el8                                    baseos                  20 k
 libgusb                             x86_64           0.3.0-1.el8                                       baseos                  49 k
 libmodman                           x86_64           2.0.1-17.el8                                      baseos                  36 k
 libpciaccess                        x86_64           0.14-1.el8                                        baseos                  32 k
 libproxy                            x86_64           0.4.15-5.2.el8                                    baseos                  75 k
 libsoup                             x86_64           2.62.3-2.el8                                      baseos                 424 k
 libwayland-client                   x86_64           1.17.0-1.el8                                      appstream               39 k
 libwayland-cursor                   x86_64           1.17.0-1.el8                                      appstream               26 k
 libwayland-egl                      x86_64           1.17.0-1.el8                                      appstream               19 k
 libwayland-server                   x86_64           1.17.0-1.el8                                      appstream               45 k
 libxshmfence                        x86_64           1.3-2.el8                                         appstream               13 k
 llvm-libs                           x86_64           11.0.0-2.module_el8.4.0+2107+39fed697             appstream               21 M
 mesa-libgbm                         x86_64           20.3.3-2.el8                                      appstream               56 k
 mesa-vulkan-drivers                 x86_64           20.3.3-2.el8                                      appstream              5.4 M
 rest                                x86_64           0.8.1-2.el8                                       appstream               70 k
 vulkan-loader                       x86_64           1.2.182.0-1.el8_4                                 appstream              119 k
 xdg-utils                           noarch           1.1.2-5.el8                                       appstream               84 k
弱い依存関係のインストール:
 dconf                               x86_64           0.28.0-4.el8                                      appstream              107 k

トランザクションの概要
=====================================================================================================================================
インストール  35 パッケージ

合計サイズ: 133 M
ダウンロードサイズの合計: 47 M
インストール後のサイズ: 423 M
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
(1/34): cairo-gobject-1.15.12-3.el8.x86_64.rpm                                                       686 kB/s |  33 kB     00:00
(2/34): glib-networking-2.56.1-1.1.el8.x86_64.rpm                                                    2.1 MB/s | 155 kB     00:00
(3/34): liberation-fonts-2.00.3-7.el8.noarch.rpm                                                     2.1 MB/s |  20 kB     00:00
(4/34): json-glib-1.4.4-1.el8.x86_64.rpm                                                             3.5 MB/s | 144 kB     00:00
(5/34): libgusb-0.3.0-1.el8.x86_64.rpm                                                               3.1 MB/s |  49 kB     00:00
(6/34): libmodman-2.0.1-17.el8.x86_64.rpm                                                            2.7 MB/s |  36 kB     00:00
(7/34): libpciaccess-0.14-1.el8.x86_64.rpm                                                           2.7 MB/s |  32 kB     00:00
(8/34): libproxy-0.4.15-5.2.el8.x86_64.rpm                                                           2.9 MB/s |  75 kB     00:00
(9/34): gsettings-desktop-schemas-3.32.0-5.el8.x86_64.rpm                                            3.6 MB/s | 632 kB     00:00
(10/34): libsoup-2.62.3-2.el8.x86_64.rpm                                                             3.8 MB/s | 424 kB     00:00
(11/34): adwaita-cursor-theme-3.28.0-2.el8.noarch.rpm                                                3.8 MB/s | 647 kB     00:00
(12/34): at-spi2-atk-2.26.2-1.el8.x86_64.rpm                                                         2.8 MB/s |  89 kB     00:00
(13/34): alsa-lib-1.2.4-5.el8.x86_64.rpm                                                             3.9 MB/s | 470 kB     00:00
(14/34): at-spi2-core-2.28.0-1.el8.x86_64.rpm                                                        3.5 MB/s | 169 kB     00:00
(15/34): colord-libs-1.4.2-1.el8.x86_64.rpm                                                          3.6 MB/s | 236 kB     00:00
(16/34): dconf-0.28.0-4.el8.x86_64.rpm                                                               3.3 MB/s | 107 kB     00:00
(17/34): desktop-file-utils-0.23-8.el8.x86_64.rpm                                                    3.0 MB/s |  80 kB     00:00
(18/34): libX11-xcb-1.6.8-4.el8.x86_64.rpm                                                           1.5 MB/s |  13 kB     00:00
(19/34): libXtst-1.2.3-7.el8.x86_64.rpm                                                              1.8 MB/s |  21 kB     00:00
(20/34): libdrm-2.4.103-1.el8.x86_64.rpm                                                             3.2 MB/s | 164 kB     00:00
(21/34): libepoxy-1.5.3-1.el8.x86_64.rpm                                                             3.4 MB/s | 225 kB     00:00
(22/34): libwayland-client-1.17.0-1.el8.x86_64.rpm                                                   1.5 MB/s |  39 kB     00:00
(23/34): libwayland-cursor-1.17.0-1.el8.x86_64.rpm                                                   2.1 MB/s |  26 kB     00:00
(24/34): libwayland-egl-1.17.0-1.el8.x86_64.rpm                                                      1.8 MB/s |  19 kB     00:00
(25/34): libwayland-server-1.17.0-1.el8.x86_64.rpm                                                   2.1 MB/s |  45 kB     00:00
(26/34): libxshmfence-1.3-2.el8.x86_64.rpm                                                           1.5 MB/s |  13 kB     00:00
(27/34): gtk3-3.22.30-6.el8.x86_64.rpm                                                               3.8 MB/s | 4.5 MB     00:01
(28/34): mesa-libgbm-20.3.3-2.el8.x86_64.rpm                                                         2.4 MB/s |  56 kB     00:00
(29/34): mesa-vulkan-drivers-20.3.3-2.el8.x86_64.rpm                                                 3.7 MB/s | 5.4 MB     00:01
(30/34): rest-0.8.1-2.el8.x86_64.rpm                                                                 1.9 MB/s |  70 kB     00:00
(31/34): adwaita-icon-theme-3.28.0-2.el8.noarch.rpm                                                  3.8 MB/s |  11 MB     00:03
(32/34): vulkan-loader-1.2.182.0-1.el8_4.x86_64.rpm                                                  1.3 MB/s | 119 kB     00:00
(33/34): xdg-utils-1.1.2-5.el8.noarch.rpm                                                            3.5 MB/s |  84 kB     00:00
(34/34): llvm-libs-11.0.0-2.module_el8.4.0+2107+39fed697.x86_64.rpm                                  5.8 MB/s |  21 MB     00:03
-------------------------------------------------------------------------------------------------------------------------------------
合計                                                                                                 8.2 MB/s |  47 MB     00:05
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                                                                             1/1
  インストール中   : libwayland-client-1.17.0-1.el8.x86_64                                                                      1/35
  インストール中   : libxshmfence-1.3-2.el8.x86_64                                                                              2/35
  インストール中   : libwayland-cursor-1.17.0-1.el8.x86_64                                                                      3/35
  インストール中   : llvm-libs-11.0.0-2.module_el8.4.0+2107+39fed697.x86_64                                                     4/35
  インストール中   : libwayland-server-1.17.0-1.el8.x86_64                                                                      5/35
  インストール中   : libwayland-egl-1.17.0-1.el8.x86_64                                                                         6/35
  インストール中   : libepoxy-1.5.3-1.el8.x86_64                                                                                7/35
  インストール中   : libXtst-1.2.3-7.el8.x86_64                                                                                 8/35
  インストール中   : at-spi2-core-2.28.0-1.el8.x86_64                                                                           9/35
  scriptletの実行中: at-spi2-core-2.28.0-1.el8.x86_64                                                                           9/35
  インストール中   : at-spi2-atk-2.26.2-1.el8.x86_64                                                                           10/35
  scriptletの実行中: at-spi2-atk-2.26.2-1.el8.x86_64                                                                           10/35
  インストール中   : libX11-xcb-1.6.8-4.el8.x86_64                                                                             11/35
  インストール中   : desktop-file-utils-0.23-8.el8.x86_64                                                                      12/35
  インストール中   : xdg-utils-1.1.2-5.el8.noarch                                                                              13/35
  インストール中   : dconf-0.28.0-4.el8.x86_64                                                                                 14/35
  インストール中   : alsa-lib-1.2.4-5.el8.x86_64                                                                               15/35
  scriptletの実行中: alsa-lib-1.2.4-5.el8.x86_64                                                                               15/35
  インストール中   : adwaita-cursor-theme-3.28.0-2.el8.noarch                                                                  16/35
  インストール中   : adwaita-icon-theme-3.28.0-2.el8.noarch                                                                    17/35
  インストール中   : libpciaccess-0.14-1.el8.x86_64                                                                            18/35
  インストール中   : libdrm-2.4.103-1.el8.x86_64                                                                               19/35
  インストール中   : mesa-libgbm-20.3.3-2.el8.x86_64                                                                           20/35
  scriptletの実行中: mesa-libgbm-20.3.3-2.el8.x86_64                                                                           20/35
  インストール中   : vulkan-loader-1.2.182.0-1.el8_4.x86_64                                                                    21/35
  インストール中   : mesa-vulkan-drivers-20.3.3-2.el8.x86_64                                                                   22/35
  インストール中   : libmodman-2.0.1-17.el8.x86_64                                                                             23/35
  scriptletの実行中: libmodman-2.0.1-17.el8.x86_64                                                                             23/35
  インストール中   : libproxy-0.4.15-5.2.el8.x86_64                                                                            24/35
  scriptletの実行中: libproxy-0.4.15-5.2.el8.x86_64                                                                            24/35
  インストール中   : libgusb-0.3.0-1.el8.x86_64                                                                                25/35
  インストール中   : colord-libs-1.4.2-1.el8.x86_64                                                                            26/35
  インストール中   : liberation-fonts-1:2.00.3-7.el8.noarch                                                                    27/35
  インストール中   : json-glib-1.4.4-1.el8.x86_64                                                                              28/35
  インストール中   : gsettings-desktop-schemas-3.32.0-5.el8.x86_64                                                             29/35
  インストール中   : glib-networking-2.56.1-1.1.el8.x86_64                                                                     30/35
  インストール中   : libsoup-2.62.3-2.el8.x86_64                                                                               31/35
  インストール中   : rest-0.8.1-2.el8.x86_64                                                                                   32/35
  scriptletの実行中: rest-0.8.1-2.el8.x86_64                                                                                   32/35
  インストール中   : cairo-gobject-1.15.12-3.el8.x86_64                                                                        33/35
  インストール中   : gtk3-3.22.30-6.el8.x86_64                                                                                 34/35
  scriptletの実行中: google-chrome-stable-94.0.4606.81-1.x86_64                                                                35/35
  インストール中   : google-chrome-stable-94.0.4606.81-1.x86_64                                                                35/35
  scriptletの実行中: google-chrome-stable-94.0.4606.81-1.x86_64                                                                35/35
  scriptletの実行中: dconf-0.28.0-4.el8.x86_64                                                                                 35/35
  scriptletの実行中: google-chrome-stable-94.0.4606.81-1.x86_64                                                                35/35
  scriptletの実行中: desktop-file-utils-0.23-8.el8.x86_64                                                                      35/35
  scriptletの実行中: adwaita-icon-theme-3.28.0-2.el8.noarch                                                                    35/35
  検証             : cairo-gobject-1.15.12-3.el8.x86_64                                                                         1/35
  検証             : glib-networking-2.56.1-1.1.el8.x86_64                                                                      2/35
  検証             : gsettings-desktop-schemas-3.32.0-5.el8.x86_64                                                              3/35
  検証             : json-glib-1.4.4-1.el8.x86_64                                                                               4/35
  検証             : liberation-fonts-1:2.00.3-7.el8.noarch                                                                     5/35
  検証             : libgusb-0.3.0-1.el8.x86_64                                                                                 6/35
  検証             : libmodman-2.0.1-17.el8.x86_64                                                                              7/35
  検証             : libpciaccess-0.14-1.el8.x86_64                                                                             8/35
  検証             : libproxy-0.4.15-5.2.el8.x86_64                                                                             9/35
  検証             : libsoup-2.62.3-2.el8.x86_64                                                                               10/35
  検証             : adwaita-cursor-theme-3.28.0-2.el8.noarch                                                                  11/35
  検証             : adwaita-icon-theme-3.28.0-2.el8.noarch                                                                    12/35
  検証             : alsa-lib-1.2.4-5.el8.x86_64                                                                               13/35
  検証             : at-spi2-atk-2.26.2-1.el8.x86_64                                                                           14/35
  検証             : at-spi2-core-2.28.0-1.el8.x86_64                                                                          15/35
  検証             : colord-libs-1.4.2-1.el8.x86_64                                                                            16/35
  検証             : dconf-0.28.0-4.el8.x86_64                                                                                 17/35
  検証             : desktop-file-utils-0.23-8.el8.x86_64                                                                      18/35
  検証             : gtk3-3.22.30-6.el8.x86_64                                                                                 19/35
  検証             : libX11-xcb-1.6.8-4.el8.x86_64                                                                             20/35
  検証             : libXtst-1.2.3-7.el8.x86_64                                                                                21/35
  検証             : libdrm-2.4.103-1.el8.x86_64                                                                               22/35
  検証             : libepoxy-1.5.3-1.el8.x86_64                                                                               23/35
  検証             : libwayland-client-1.17.0-1.el8.x86_64                                                                     24/35
  検証             : libwayland-cursor-1.17.0-1.el8.x86_64                                                                     25/35
  検証             : libwayland-egl-1.17.0-1.el8.x86_64                                                                        26/35
  検証             : libwayland-server-1.17.0-1.el8.x86_64                                                                     27/35
  検証             : libxshmfence-1.3-2.el8.x86_64                                                                             28/35
  検証             : llvm-libs-11.0.0-2.module_el8.4.0+2107+39fed697.x86_64                                                    29/35
  検証             : mesa-libgbm-20.3.3-2.el8.x86_64                                                                           30/35
  検証             : mesa-vulkan-drivers-20.3.3-2.el8.x86_64                                                                   31/35
  検証             : rest-0.8.1-2.el8.x86_64                                                                                   32/35
  検証             : vulkan-loader-1.2.182.0-1.el8_4.x86_64                                                                    33/35
  検証             : xdg-utils-1.1.2-5.el8.noarch                                                                              34/35
  検証             : google-chrome-stable-94.0.4606.81-1.x86_64                                                                35/35

インストール済み:
  adwaita-cursor-theme-3.28.0-2.el8.noarch                    adwaita-icon-theme-3.28.0-2.el8.noarch
  alsa-lib-1.2.4-5.el8.x86_64                                 at-spi2-atk-2.26.2-1.el8.x86_64
  at-spi2-core-2.28.0-1.el8.x86_64                            cairo-gobject-1.15.12-3.el8.x86_64
  colord-libs-1.4.2-1.el8.x86_64                              dconf-0.28.0-4.el8.x86_64
  desktop-file-utils-0.23-8.el8.x86_64                        glib-networking-2.56.1-1.1.el8.x86_64
  google-chrome-stable-94.0.4606.81-1.x86_64                  gsettings-desktop-schemas-3.32.0-5.el8.x86_64
  gtk3-3.22.30-6.el8.x86_64                                   json-glib-1.4.4-1.el8.x86_64
  libX11-xcb-1.6.8-4.el8.x86_64                               libXtst-1.2.3-7.el8.x86_64
  libdrm-2.4.103-1.el8.x86_64                                 libepoxy-1.5.3-1.el8.x86_64
  liberation-fonts-1:2.00.3-7.el8.noarch                      libgusb-0.3.0-1.el8.x86_64
  libmodman-2.0.1-17.el8.x86_64                               libpciaccess-0.14-1.el8.x86_64
  libproxy-0.4.15-5.2.el8.x86_64                              libsoup-2.62.3-2.el8.x86_64
  libwayland-client-1.17.0-1.el8.x86_64                       libwayland-cursor-1.17.0-1.el8.x86_64
  libwayland-egl-1.17.0-1.el8.x86_64                          libwayland-server-1.17.0-1.el8.x86_64
  libxshmfence-1.3-2.el8.x86_64                               llvm-libs-11.0.0-2.module_el8.4.0+2107+39fed697.x86_64
  mesa-libgbm-20.3.3-2.el8.x86_64                             mesa-vulkan-drivers-20.3.3-2.el8.x86_64
  rest-0.8.1-2.el8.x86_64                                     vulkan-loader-1.2.182.0-1.el8_4.x86_64
  xdg-utils-1.1.2-5.el8.noarch

完了しました!

コメント

タイトルとURLをコピーしました