Install PostreSQL 14 and PostGIS 3 on Ubuntu 22.04 LTS
I always get frustrated when I update my version of Ubuntu to the next LTS and want to do some development work with the latest stable releases of PostgreSQL and PostGIS. I usually trawl a few web sites to find out what has changed but each time there are slightly different ways of doing the upgrade depending on where you land and who it is doing it. So...to (hopefully) help other people out wasting half a day or so here is my solution. Hope this works for you too... To completely remove all previous installed versions of Postgresql/PostGIS libraries and docs if there is a previous version:- :$ sudo apt --purge remove postgresql postgresql-* :$ sudo apt autoremove Remove old folders:- :$ sudo rm -rf /var/lib/postgresql/ :$ sudo rm -rf /var/log/postgresql/ :$ sudo rm -rf /etc/postgresql/ Remove the old 'postgres' user:- :$ sudo deluser postgres Restart System:- :$ sudo shutdown -r now then:- Update Syste...
Comments
Post a Comment