0
[root@cpsc-server VNCInstallable]# ls

VNC-Server-5.1.1-Linux-x64.rpm  VNC-Viewer-5.1.1-Linux-x64.rpm

[root@cpsc-server VNCInstallable]# rpm -e VNC-Server-5.1.1-Linux-x64.rpm
**error: package VNC-Server-5.1.1-Linux-x64.rpm is not installed**
[root@cpsc-server VNCInstallable]#
[root@cpsc-server VNCInstallable]#
[root@cpsc-server VNCInstallable]# rpm -ivh VNC-Server-5.1.1-Linux-x64.rpm
Preparing...                ########################################### [100%]
        **package realvnc-vnc-server-5.1.1.17550-1.x86_64 is already installed**
[root@cpsc-server VNCInstallable]#

whats wrong, how do i completely remove the VNC and install again. Also, i am not able to view the config file under /etc/sysconfig/vncservers

1 Answers1

0

You gave the rpm -e command a file name. It wants a package name. Just because the file is called VNC-Server-5.1.1-Linux-x64.rpm doesn't mean the package is called the same thing. I can rename the file all I want, and when I install it, the package will still have the original name (in this case, realvnc-vnc-server, version 5.1.1.17550, release 1, with an x86_64 architecture).

John
  • 9,070
  • 1
  • 29
  • 34
  • Yes, absolutely, Thanks!!, i removed vnc with the package name. But how do i find the config file? isn't it supposed to be at `/etc/sysconfig/vncservers` ? – user223831 Jun 04 '14 at 19:04
  • If you've remove the package, the config file may not be there any longer. The config file is probably in the payload (`rpm -ql realvnc-vnc-server` while it's installed), but might be ghosted and not show up. – John Jun 04 '14 at 19:07
  • If the intent is to re-install theres a greate EZ guide at http://www.1337admin.org/linux/configuring-vnc-server-the-easy-way-in-linux/ – Brad Nov 22 '15 at 03:14