Fix README.md - PostgreSQL 16 requires official repo (not Ubuntu default)
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m3s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 12s
CI Pipeline / Build .deb & Release (push) Has been cancelled
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m3s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 12s
CI Pipeline / Build .deb & Release (push) Has been cancelled
This commit is contained in:
33
README.md
33
README.md
@ -37,8 +37,8 @@ Linux Patch Manager is a web application that acts as a management plane, commun
|
|||||||
|
|
||||||
| Component | Requirement |
|
| Component | Requirement |
|
||||||
|-----------|-------------|
|
|-----------|-------------|
|
||||||
| **Operating System** | Ubuntu 24.04 LTS (Noble) |
|
| **Operating System** | Ubuntu 22.04 LTS or 24.04 LTS |
|
||||||
| **Database** | PostgreSQL 16 |
|
| **Database** | PostgreSQL 16 (via official PostgreSQL repository) |
|
||||||
| **Memory** | 2 GB RAM minimum, 4 GB recommended |
|
| **Memory** | 2 GB RAM minimum, 4 GB recommended |
|
||||||
| **Storage** | 1 GB for application + database space |
|
| **Storage** | 1 GB for application + database space |
|
||||||
| **Network** | HTTPS access (port 443 recommended) |
|
| **Network** | HTTPS access (port 443 recommended) |
|
||||||
@ -53,41 +53,24 @@ Download the latest `.deb` package from the [Gitea Releases](https://gitea-lxc.m
|
|||||||
wget https://gitea-lxc.moon-dragon.us/echo/linux_patch_manager/releases/download/v0.0.2/linux-patch-manager_1.0.0-1_amd64.deb
|
wget https://gitea-lxc.moon-dragon.us/echo/linux_patch_manager/releases/download/v0.0.2/linux-patch-manager_1.0.0-1_amd64.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Install Dependencies
|
### 2. Install PostgreSQL 16
|
||||||
|
|
||||||
**Option A: Ubuntu 24.04 (has PostgreSQL 16 in repositories)**
|
**Important:** PostgreSQL 16 is NOT available in Ubuntu's default repositories. You MUST add the official PostgreSQL repository.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt update
|
# Add PostgreSQL official repository
|
||||||
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'
|
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
|
# Import signing key
|
||||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||||
|
|
||||||
# Update and install
|
# Update package list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
|
# Install PostgreSQL 16 and SSL library
|
||||||
sudo apt install -y postgresql-16 libssl3
|
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