Centos
安裝 (html) tidy 與文件系統包衝突
我在 CentOS 7 上嘗試安裝
tidy
. 由於通常的嫌疑人沒有提供任何軟體包,我從http://binaries.html-tidy.org/tidy-5.1.25-64bit.rpm
下載了RPM 。當我安裝此 RPM 時,我與包發生衝突,如下所示。filesystem
# yum install tidy-5.1.25-64bit.rpm Loaded plugins: fastestmirror Examining tidy-5.1.25-64bit.rpm: tidy-5.1.25-1.x86_64 Marking tidy-5.1.25-64bit.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package tidy.x86_64 0:5.1.25-1 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================== Package Arch Version Repository Size ==================================================================================== Installing: tidy x86_64 5.1.25-1 /tidy-5.1.25-64bit 2.1 M Transaction Summary ==================================================================================== Install 1 Package Total size: 2.1 M Installed size: 2.1 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction check error: file /usr/share/man from install of tidy-5.1.25-1.x86_64 conflicts with file from package filesystem-3.2-20.el7.x86_64 file /usr/share/man/man1 from install of tidy-5.1.25-1.x86_64 conflicts with file from package filesystem-3.2-20.el7.x86_64 Error Summary ------------- #
這只是文件權限/所有權衝突嗎?如果是這樣,我可以強制安裝嗎?我可以告訴
yum
安裝到/usr/local
嗎?
您看到該錯誤的原因是維護該軟體包的人錯誤地包含
/usr/share/man
在/usr/share/man/man1
RPM 軟體包的定義中,該軟體包“擁有”什麼。因為該軟體包聲稱擁有該目錄(並且如果您解除安裝它會嘗試刪除它),yum 檢測到另一個已安裝的軟體包“文件系統”已經擁有它。對於不熟悉創建 RPM 的人來說,這是一個常見的錯誤。這使我不太可能信任該軟體包或該網站上的任何軟體包。