Update README.md - add PostgreSQL official repo option for older Ubuntu
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 3s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m1s
CI Pipeline / Security Audit (push) Successful in 3s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 12s
CI Pipeline / Build .deb & Release (push) Failing after 3m18s
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 3s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m1s
CI Pipeline / Security Audit (push) Successful in 3s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 12s
CI Pipeline / Build .deb & Release (push) Failing after 3m18s
This commit is contained in:
28
README.md
28
README.md
@ -55,11 +55,39 @@ wget https://gitea-lxc.moon-dragon.us/echo/linux_patch_manager/releases/download
|
|||||||
|
|
||||||
### 2. Install Dependencies
|
### 2. Install Dependencies
|
||||||
|
|
||||||
|
**Option A: Ubuntu 24.04 (has PostgreSQL 16 in repositories)**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y postgresql-16 libssl3
|
sudo apt install -y postgresql-16 libssl3
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Option B: Older Ubuntu versions (add PostgreSQL official repository)**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Add PostgreSQL official repo
|
||||||
|
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 signing key
|
||||||
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||||
|
|
||||||
|
# Update and install
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y postgresql-16 libssl3
|
||||||
|
```
|
||||||
|
|
||||||
|
**Check your Ubuntu version:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
lsb_release -a
|
||||||
|
```
|
||||||
|
|
||||||
|
| Ubuntu Version | Default PostgreSQL | Use Option |
|
||||||
|
|----------------|-------------------|------------|
|
||||||
|
| 24.04 LTS (Noble) | 16 | A |
|
||||||
|
| 22.04 LTS (Jammy) | 14 | B |
|
||||||
|
| 20.04 LTS (Focal) | 12 | B |
|
||||||
|
|
||||||
### 3. Install the Package
|
### 3. Install the Package
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user