rpm コマンドでパッケージを以前のバージョンにダウングレードする方法
Environment
- Red Hat Enterpise Linux 9
- Red Hat Enterpise Linux 8
- Red Hat Enterpise Linux 7
- Red Hat Enterpise Linux 6
Issue
- rpm コマンドを使用して、パッケージを以前のバージョンにダウングレードするにはどうすればよいですか?
Resolution
--oldpackage
オプションを指定して rpm
コマンドを使用し、パッケージを以前のバージョンにダウングレードします。
# rpm -Uhv --oldpackage package.rpm
複数のパッケージを一度にダウングレードするには、ダウングレードするパッケージをフォルダーにコピーし、以下のコマンドを実行します。
# rpm -Uhv --oldpackage *.rpm
Root Cause
Diagnostic Steps
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments