apt-get install postgis postgresql-13-postgis-3-scripts code example Example: install postgis 2.5 ubuntu sudo apt install postgresql-11-postgis-2.5