GNU/Linux >> Linux の 問題 >  >> Cent OS

CentOS/RHEL 8 でモジュール ストリームを切り替える方法

質問 :AppStream の切り替え中にエラーが発生しました:

# dnf install @<module-name>:<stream>
Last metadata expiration check: 2:21:43 ago on Thu 05 Aug 2021 05:53:23 PM IST.
Dependencies resolved.
The operation would result in switching of module '<module-name>' stream '<stream>' to stream '<stream>'
Error: It is not possible to switch enabled streams of a module.
It is recommended to remove all installed content from the module, and reset the module using 'dnf module reset <module_name>' command. After you reset the module, you can install the other stream.

上記の同じモジュールの別のストリームが既に存在します。モジュールストリームを切り替えるには?

1. 以下のコマンドを使用してモジュールをリセットします:

# dnf module reset <module-name>

2. モジュールの別のストリームのプロファイルを次のようにインストールします。

# dnf install @<module-name>:<stream>

3. 以下のコマンドを使用して、前のステップでインストールされたプロファイルにリストされていない、前のモジュール ストリームからインストールされたパッケージを更新またはダウングレードします。

# dnf distro-sync

4. 前のモジュール ストリームからインストールされた残りのパッケージを手動で削除します。

# dnf remove <package> ...
注意 :OL8 AppStream の最新チャネルが有効になっていることを確認します。 はモジュールの名前で、 は目的のストリームです。例:@php:7.4


Cent OS
  1. CentOS8をCentOSストリームに変換する方法

  2. CentOS / RHEL 7 :firewalld から iptables に切り替える方法

  3. CentOS/RHEL でパスワード アルゴリズムを切り替える方法

  1. RHEL 8 /CentOS8にphpMyAdminをインストールする方法

  2. RHEL 8 /CentOS8にP7Zipをインストールする方法

  3. CentOS / RHEL 7でfirewalldを無効にしてiptablesに切り替える方法

  1. RHEL 8 /CentOS8にntfs-3gをインストールする方法

  2. PHP-mbstringをRHEL8/CentOS8にインストールする方法

  3. RHEL 8 /CentOS8にphantomjsをインストールする方法