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

4
  • Isn't it just that -e expects a package name rather than a file name? Jun 4, 2014 at 18:57
  • well, that IS a package name there i suppose. am i missing something?
    – user223831
    Jun 4, 2014 at 18:57
  • Based on the output you have included it sounds like the package name is realvnc-vnc-server-5.1.1.17550-1.x86_64 while the filename is VNC-Server-5.1.1-Linux-x64.rpm Jun 4, 2014 at 19:00
  • Yes, thats right .. Thanks !! .. How do i retrieve the missing /etc/sysconfig/vncservers ?, or am i looking for it in the wrong place .. because i am on Redhat?
    – user223831
    Jun 4, 2014 at 19:02

1 Answer 1

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).

3
  • 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 4, 2014 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 4, 2014 at 19:07
  • If the intent is to re-install theres a greate EZ guide at 1337admin.org/linux/…
    – Brad
    Nov 22, 2015 at 3:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .