CentOS에서 패키지 재설치

CentOS에서 패키지 재설치

Perl 패키지를 설치하려고 하는데 다음 종속성 오류가 발생합니다.

[user@localhost Downloads]$ rpm -Uvh ImageMagick-6.8.4-9.i386.rpm 
error: Failed dependencies:
    libltdl.so.3 is needed by ImageMagick-6.8.4-4.i386

이 문제를 해결하기 위해 누락된 패키지를 설치하려고 시도했지만 이미 존재하는 것 같습니다.

[Evgeny@localhost Downloads]$ sudo yum install libltdl.so.3
...
No package libltdl.so.3 available.

yum그런 다음 옵션을 사용 하려고 시도했지만 reinstall또 다른 오류가 발생했습니다.

[Evgeny@localhost Downloads]$ sudo yum reinstall libltdl.so.3
...
No Match for argument: libltdl.so.3
Error: Nothing to do

여기서 문제가 무엇입니까? 현재 libltdl.so.3패키지를 완전히 제거하고 처음부터 설치해야 합니까? 아니면 다른 문제가 있는 걸까요?

답변1

"libltdl.so.3"이 아닌 "libtool-ltdl" 패키지를 설치해야 합니다. 이는 위에서 언급한 패키지의 일부인 공유 라이브러리일 뿐입니다.

yum install "libtool-ltdl"
rpm -Uvh ImageMagick-6.8.4-9.i386.rpm

작동시켜야합니다.

다음은 centos용 libltdl.so.3 파일이 포함된 패키지에 대한 모든 결과입니다.

You have chosen search in content of rpms.
Display 1 - 38 hits of 38. Search took 0.02 seconds.
1
1




Search results for libltdl.so.3 :
CentOS 5    ftp.centos.org/5.9/os/x86_64/CentOS/libtool-ltdl-1.5.22-7.el5_4.x86_64.rpm
CentOS 5    ftp.centos.org/5.9/os/x86_64/CentOS/libtool-ltdl-1.5.22-7.el5_4.i386.rpm
CentOS 5    ftp.centos.org/5.9/os/i386/CentOS/libtool-ltdl-1.5.22-7.el5_4.i386.rpm
CentOS Other    yum.trixbox.org/centos/4/RPMS/libtool-libs-1.5.6-4.EL4.1.c4.4.i386.rpm
Other   ftp.rpmhelp.net/pub/releases/1.0-CURRENT/i586/RPMS/libltdl3-1.4.3-9sls.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/GW Monitor Community Edition/5.0.5-208/groundwork-monitor-os-5.0.5-208.sles9.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/GW Monitor Community Edition/5.0.5-208/groundwork-monitor-os-5.0.5-208.sles10.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/OldFiles/groundwork-monitor-os-4.5-M1.31a.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/m/ma/mapifier/OldFiles/groundwork-monitor-os-4.5-M1.31.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/GW Monitor Community Edition/4.5.11/groundwork-monitor-os-4.5-11.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ar/arp2.berlios/gg-libtool-1.4.2-2.i386.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ar/arp2.berlios/gg-libtool-1.4.2-1.i386.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.53.lt.1.4.2.am.1.6-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.53.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.6-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.2.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.2.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4b.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.2.am.1.4l-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4b.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.4l-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.2.am.1.4f-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.2.am.1.4.5-2sfnet.i586.rpm

답변2

간단한 yum install ImageMagick작업을 수행해야 합니다(종속성 없이 설치될 가능성은 거의 없음). 시스템에서 패키지가 설치되었다고 생각하면 yum reinstall ImageMagick실행할 명령입니다. 문제가 발생하면 yum deplist ...종속성을 제공하는 패키지 목록을 제공합니다.

또한 설치하고 yum-utils최소한 yum및 에 대한 매뉴얼 페이지를 확인하십시오 package-cleanup.

관련 정보