installation
This commit is contained in:
parent
85d31b4e87
commit
7cb2318610
12
install_postgres.sh
Executable file
12
install_postgres.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
# Create the file repository configuration:
|
||||||
|
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
||||||
|
|
||||||
|
# Import the repository signing key:
|
||||||
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||||
|
|
||||||
|
# Update the package lists:
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
# Install the latest version of PostgreSQL.
|
||||||
|
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
|
||||||
|
sudo apt-get -y install postgresql
|
24
install_python3.sh
Executable file
24
install_python3.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Update the package list
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
# Install the software-properties-common package
|
||||||
|
sudo apt-get install software-properties-common
|
||||||
|
|
||||||
|
# Add the deadsnakes PPA to the sources list
|
||||||
|
sudo add-apt-repository ppa:deadsnakes/ppa
|
||||||
|
|
||||||
|
# Update the package list again
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
# Check the latest version of Python 3 available
|
||||||
|
latest_version=$(apt-cache madison python3 | awk '{print $3}' | grep "^3\." | sort -V | tail -1)
|
||||||
|
|
||||||
|
# Install the latest version of Python 3
|
||||||
|
sudo apt-get install -y python3=$latest_version
|
||||||
|
|
||||||
|
# Verify the installation
|
||||||
|
python3 --version
|
||||||
|
which python3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user