Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

Red Hat Enterprise Linux (RHEL) 6 から RHEL 5 以前への RPM の互換性

Solution Verified - Updated -

Issue

  • Red Hat Enterprise Linux 5 (RHEL5) 以前に、RHEL 6 でビルドした RPM パッケージをインストールすることができません。
  • RHEL 6 でビルドしたパッケージを以前の RHEL リリースにインストールしようとすると、以下のようなエラーが発生します。
    # rpm -i testpkg-1.0-1.el6.x86_64.rpm 
    error: Failed dependencies:
            rpmlib(FileDigests) <= 4.6.0-1 is needed by testpkg-1.0-1.el6.x86_64
            rpmlib(PayloadIsXz) <= 5.2-1 is needed by testpkg-1.0-1.el6.x86_64
    
  • 依存関係チェックを無効にする (推奨されません) と、より不明瞭なエラーが発生します。
    # rpm -i --nodeps testpkg-1.0-1.el6.x86_64.rpm
    error: unpacking of archive failed: cpio: Bad magic
    
    # rpm -i --nodeps another-testpkg-1.0-2.el6.x86_64.rpm
    error: unpacking of archive failed on file /tmp/testpkg1.txt;4cb5bdd2: cpio: MD5 sum mismatch
    
  • 注意: RHEL 6 は、RHEL 5 以前のリリースでビルドしたパッケージをインストールできます。
  • RHEL 5 にインストールするパッケージを RHEL 6 システムで作成するにはどうすれば良いですか?

Environment

  • rpm-4.4.x 以前を使用する Red Hat Enterprise Linux 5
  • rpm-4.8.x を使用する Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.