How to *completely* remove tigervnc server from Ubuntu 22.04?

Bo Berglund bo.berglund at gmail.com
Tue Mar 14 11:33:16 UTC 2023


On Tue, 14 Mar 2023 10:29:14 +0100, Ralf Mardorf via ubuntu-users
<ubuntu-users at lists.ubuntu.com> wrote:

>Hi,
>
>"Removing a package removes all packaged data, but leaves usually small
>(modified) user configuration files behind, in case the remove was an
>accident. Just issuing an installation request for the accidentally
>removed package will restore its function as before in that case. On the
>other hand you can get rid of these leftovers by calling
>_purge_ even on already removed packages. Note that this does not affect
>any data or configuration stored in your home directory."
>- https://manpages.ubuntu.com/manpages/jammy/man8/apt.8.html
>
>IOW _purge_ does remove
>
>  /etc/vnc.conf
>  /etc/systemd/system/vncserver at .service
>
>and any other file installed by the package, that was edited after
>installation, but it doesn't remove
>
>  ~/.vnc/xstartup
>
>or any other related file in $HOME . You need to tidy up $HOME by
>yourself. $HOME is always taboo for the package management.
>
>PS:
>
>I don't know what happens to installed dependencies.
>
>tigervnc-common is a hard dependency
>tigervnc-tools  is a recommended dependency
>
>see
>
>https://tracker.debian.org/pkg/tigervnc
>https://packages.ubuntu.com/jammy/tigervnc-standalone-server
>
>you might need to purge
>
>  tigervnc-standalone-server
>
>and
>
>  tigervnc-common
>
>and probably other related packages containing configurations related to
>tigervnc .
>
>Regards,
>Ralf

Thanks, I checked the status of these:

$ apt policy tigervnc-standalone-server tigervnc-common tigervnc-tools
tigervnc-standalone-server:
  Installed: 1.12.0+dfsg-4
  Candidate: 1.12.0+dfsg-4
  Version table:
 *** 1.12.0+dfsg-4 500
        500 http://se.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status
tigervnc-common:
  Installed: 1.12.0+dfsg-4
  Candidate: 1.12.0+dfsg-4
  Version table:
 *** 1.12.0+dfsg-4 500
        500 http://se.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status
tigervnc-tools:
  Installed: 1.12.0+dfsg-4
  Candidate: 1.12.0+dfsg-4
  Version table:
 *** 1.12.0+dfsg-4 500
        500 http://se.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

So all of them were installed.
Removing them will be like this, I guess:

sudo apt remove tigervnc-standalone-server tigervnc-common tigervnc-tools
sudo apt purge  tigervnc-standalone-server tigervnc-common tigervnc-tools

Or can they be combined some way?


-- 
Bo Berglund
Developer in Sweden




More information about the ubuntu-users mailing list