root@host [/tmp]# yum install vnc-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.sanctuaryhost.com
* extras: mirror.ubiquityservers.com
* updates: mirror.ubiquityservers.com
Setting up Install Process
Package tigervnc-server-module-1.0.90-0.17.20110314svn4359.el6.x86_64 already installed and latest version
Nothing to do然而,当我运行rpm -q vnc-server时,我得到:
root@host [/tmp]# rpm -q vnc-server
package vnc-server is not installed
root@host [/tmp]#我是按照这里的指示
发布于 2012-12-27 14:33:15
RPM软件包有一种方法来指示它们作为安装的一部分提供了什么。这些“提供”通常是自动计算的,但也可以由包装机手动添加。通常,这样做是为了满足一般的依赖--例如,一些包可能需要一种发送邮件的方式,但它们并不真正关心您是否运行postfix、sendmail、exim或其他什么。为了解决这个问题,提供邮件传输功能的包具有一个通用的"Provides: MTA“。
您可以检查您的系统:
yum provides MTA您将看到这将返回exim、postfix和sendmail。当多个包提供诸如"vnc服务器“之类的通用功能时,它们可以将其作为”手册提供“的一部分。在我们的案例中:
yum provides vnc-server这将返回几次点击,其中tigervnc服务器是其中之一。
您可以使用rpm -q --provides列出包中的所有“提供”。例如:
# rpm -q --provides tigervnc-server
config(tigervnc-server) = 1.1.0-6.1.fc17
tightvnc-server = 1.5.0-0.15.20090204svn3586
vnc-libs = 4.1.3-2
vnc-server = 4.1.3-2
tigervnc-server = 1.1.0-6.1.fc17
tigervnc-server(x86-64) = 1.1.0-6.1.fc17发布于 2012-12-27 13:36:14
vnc-server不是实际的包名,而是tigervnc-server-module的别名( yum说已经安装了这个别名)。我不知道这个别名是在哪里定义的,但是我假设rpm程序不知道它是一个yum存储库。
发布于 2012-12-27 14:19:59
[root@dunno ~]# yum list vnc\*
Loaded plugins: changelog, downloadonly, product-id, refresh-packagekit, rhnplugin, subscription-manager, tmprepo, verify, versionlock
Updating Red Hat repositories.
Available Packages
vnc-ltsp-config.noarch 4.0-7.fc12 fedora
vnc-reflector.i686 1.2.4-7.fc12 fedora
vnc2swf.x86_64 0.5.0-2.el6.rf rpmforge
vncreflector.x86_64 1.2.4-0.2.el6.rf rpmforge
[root@dunno ~]# yum list tiger\*
Loaded plugins: changelog, downloadonly, product-id, refresh-packagekit, rhnplugin, subscription-manager, tmprepo, verify, versionlock
Updating Red Hat repositories.
Installed Packages
tigervnc.x86_64 1.0.90- 0.15.20110314svn4359.el6_1.1 @production-rhel-x86_64- workstation-6
tigervnc-server.x86_64 1.0.90- 0.15.20110314svn4359.el6_1.1 @production-rhel-x86_64- workstation-6
Available Packages
tiger.i686 3.2.1-11.fc12 fedora
tigervnc.i686 1.0.90- 0.8.20100219svn3993.fc13 fedora
tigervnc.x86_64 1.0.90-0.17.20110314svn4359.el6 production-rhel-x86_64- workstation-6
tigervnc-server.i686 1.0.90- 0.8.20100219svn3993.fc13 fedora
tigervnc-server.x86_64 1.0.90-0.17.20110314svn4359.el6 production-rhel-x86_64- workstation-6
tigervnc-server-applet.noarch 1.0.90- 0.17.20110314svn4359.el6 production-rhel-x86_64- workstation-optional-6
tigervnc-server-module.i686 1.0.90-0.8.20100219svn3993.fc13 fedora
tigervnc-server-module.x86_64 1.0.90- 0.17.20110314svn4359.el6 production-rh所以你得这么做。
yum install -y tigervnc.x86_64https://serverfault.com/questions/461150
复制相似问题