简体   繁体   中英

install rpm packages and dealing with dependencies

I am trying to install apt-get on centos.

wget http://pkgs.repoforge.org/apt/apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm
rpm -i apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm 
error: Failed dependencies:
    libbeecrypt.so.6()(64bit) is needed by apt-0.5.15lorg3.2-1.el4.rf.x86_64
    libreadline.so.4()(64bit) is needed by apt-0.5.15lorg3.2-1.el4.rf.x86_64
    librpm-4.3.so()(64bit) is needed by apt-0.5.15lorg3.2-1.el4.rf.x86_64
    librpmdb-4.3.so()(64bit) is needed by apt-0.5.15lorg3.2-1.el4.rf.x86_64
    librpmio-4.3.so()(64bit) is needed by apt-0.5.15lorg3.2-1.el4.rf.x86_64
Now I can try to download the missing libraries individually, but is there a better way?

Yes, you can try to use a package manager, which will manage the dependencies for you. The problem will be to find the RPM file in a repository, add that repository to your package manager, update the index information of your pack. manager. Looking at that RPM, I think you will be using yum.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM