rpm installation fails due to depencency /bin/sh not found

后端 未结 4 2083
一整个雨季
一整个雨季 2021-02-13 06:38

i am trying to install a package using rpm, for which i have created a different database using rpmdb --initdb --dbpath $HOME/myrpmdb and specifying that path in t

相关标签:
4条回答
  • 2021-02-13 07:02

    Why use a different rpm database? There should be a really good reason to go this route...

    If you must have a private rpm db, you can copy the system db into your private one cp /var/lib/rpm/* ~/myrpmdb/.

    installing with --nodeps may be the easiest way... copying the rpm db is really sub-optimal, it will soon be out of date and not reflect the state of the system.

    0 讨论(0)
  • 2021-02-13 07:02

    Right way install rpm via alien:

    alien -i my_rpm_name.rpm
    

    If alien is not installed:

    sudo apt-get install alien
    
    0 讨论(0)
  • 2021-02-13 07:02
    error: Failed dependencies:
    /bin/sh is needed by XXX
    

    This happens because bash rpm is not available in the new rpmdb path. You would have to use following to get the rpm installed.

    # rpm --dbpath $HOME/myrpmdb --nodeps -ivh XXX.rpm
    
    0 讨论(0)
  • 2021-02-13 07:11

    Because you've told it to use a completely different database, rpm doesn't look at the system database which is where /bin/sh would be found.

    0 讨论(0)
提交回复
热议问题