If you are looking to turn up a full, Open Source GIS stack with the latest versions of all software, check out GeoHelm.
GeoHelm installs the latest, stable releases of
Apache Tomcat
Java
PostgreSQL
PostGIS
PgRouting
GeoServer
It takes only 10 minutes to install
It also provides a UI within Webmin for managing all aspects of the stack (see screenshot below)
Best of all, it doesn’t get tangled-up in the software, the module can be completely deleted with no impact on the stack.
It also includes a basic Bootstrap web app with demo apps for OpenLayers and Leaflet using GeoServer.