I am running Ubuntu 14.04 and have pgadmin3 version 1.18.1, PostgreSQL 9.4 installed. I am new to pgadmin3.
I want to upgrade to pgadmin3 1.20.0.
So I used
sudo apt-get update
sudo apt-get install pgadmin3
Then I had 2 different versions [1.18.q and 1.20.0] of pgadmin3 installed on my machine. So I tried to remove pgadmin3 using these commands seperately,
sudo apt-get remove pgadmin3
sudo apt-get remove --auto-remove pgadmin3
also tried,
sudo apt-get purge pgadmin3
sudo apt-get purge --auto-remove pgadmin3
but this removed the 1.20.0 version and not 1.18.1.
I tried removing the 1.18.1 version by using the same commands then it says that the pgadmin3 is not installed.
What should I do to have pgadmin3 version 1.20.0 installed on my machine? I want to remove version 1.18.1-2.
This is the link to the snapshot which shows that I have 2 versions installed
When I do,
apt-cache show pgadmin3 | grep Version:
it shows,
Version: 1.20.0-3.pgdg14.04+1
Version: 1.20.0-3.pgdg12.4+1
Version: 1.18.1-2
EDIT
Output of,
apt-cache policy pgadmin3
is:
pgadmin3:
Installed: 1.20.0-3.pgdg14.04+1
Candidate: 1.20.0-3.pgdg14.04+1
Version table:
*** 1.20.0-3.pgdg14.04+1 0
500 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main amd64 Packages
100 /var/lib/dpkg/status
1.20.0-3.pgdg12.4+1 0
500 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main amd64 Packages
1.18.1-2 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
The output of command,
grep -r 'pgadmin3' /usr/share/applications
is
/usr/share/applications/pg-doc-pgadmin-9_3.desktop:Exec="/opt/PostgreSQL/9.3/scripts/launchbrowser.sh" file:///opt/PostgreSQL/9.3/pgAdmin3/share/pgadmin3/docs/en_US/index.html
/usr/share/applications/pgadmin3.desktop:Exec=pgadmin3
/usr/share/applications/pgadmin3.desktop:Icon=pgadmin3
/usr/share/applications/bamf-2.index:pg-doc-pgadmin-9_3.desktop "/opt/PostgreSQL/9.3/scripts/launchbrowser.sh" file:///opt/PostgreSQL/9.3/pgAdmin3/share/pgadmin3/docs/en_US/index.html false
/usr/share/applications/bamf-2.index:pgadmin3.desktop pgadmin3 false
AND For:
# grep -r 'pgadmin3' ~/.local/share/applications
Output is:
grep: /root/.local/share/applications: No such file or directory
For:
# command -v pgadmin3
it shows:
/usr/bin/pgadmin3
apt-cache policy pgadmin3
grep -r 'pgadmin3' /usr/share/applications; grep -r 'pgadmin3' ~/.local/share/applications; command -v pgadmin3
grep -r 'pgadmin3' ~/.local/share/applications; command -v pgadmin3
grep -r 'pgadmin3' ~/.local/share/applications
as regular user and not as root user.