# HPE mirror (pkg.shecan.ir)

> Mirror of downloads.linux.hpe.com (HPE Software Delivery Repository) with its paths: /SDR/repo/<project>/ (also /repo/<project>/) for the apt and rpm repositories of the Management Component Pack (mcp: ssacli, ssaducli, amsd, hponcfg, storcli; apt dists/<codename>/current, rpm <distro>/<release>/<arch>/current), ilorest, sut, hpsum, sum, spp-gen* and others, and the signing keys /SDR/hpePublicKey2048_key1.pub, /SDR/hpePublicKey2048_key2.pub, /SDR/hpPublicKey2048_key1.pub (directory listings are served).

- Upstream: downloads.linux.hpe.com
- Mirror URLs: <https://mirror-hpe.pkg.shecan.ir/SDR/repo/>, <https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key2.pub>
- Clients: apt, dnf, yum
- Service status: <https://pkg.shecan.ir/status.json> (key `hpe`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/hpe/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/hpe.json>

## Limitations

- The firmware packs (fwpp, fwpp-gen*) are not served: HPE gives ProLiant firmware to customers with an active warranty or support contract only. Repositories that need an HPE token (hpe-foundation, csrepo, ...) answer 401 and cannot be used through the mirror.
- apt and dnf still verify HPE's signature (the three public keys; the guide installs them). The apt repositories are signed with a detached Release.gpg, not InRelease.
- The Management Component Pack is for community distributions (Ubuntu, Debian, Rocky, AlmaLinux, Oracle Linux, CentOS); on Red Hat Enterprise Linux and SUSE HPE ships the same tools in the Service Pack for ProLiant. The packages are amd64 only.

## Setup

Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.

### apt: persistent (user- or system-wide configuration)

Run, Ubuntu or Debian (linux)

```sh
sudo apt update && sudo apt install -y curl gpg
sudo install -m 0755 -d /etc/apt/keyrings
for k in hpePublicKey2048_key1 hpePublicKey2048_key2 hpPublicKey2048_key1; do
  curl -fsSL https://mirror-hpe.pkg.shecan.ir/SDR/$k.pub
done | sudo gpg --dearmor --yes -o /etc/apt/keyrings/hpe.gpg
. /etc/os-release
echo "deb [signed-by=/etc/apt/keyrings/hpe.gpg] https://mirror-hpe.pkg.shecan.ir/SDR/repo/mcp $VERSION_CODENAME/current non-free" | sudo tee /etc/apt/sources.list.d/hpe-mcp.list
sudo apt update && sudo apt install -y ssacli
```

Undo / restore the default, Ubuntu or Debian (linux)

```sh
sudo rm -f /etc/apt/sources.list.d/hpe-mcp.list /etc/apt/keyrings/hpe.gpg
sudo apt update
```

Run, Debian (linux)

```sh
sudo apt update && sudo apt install -y curl gpg
sudo install -m 0755 -d /etc/apt/keyrings
for k in hpePublicKey2048_key1 hpePublicKey2048_key2 hpPublicKey2048_key1; do
  curl -fsSL https://mirror-hpe.pkg.shecan.ir/SDR/$k.pub
done | sudo gpg --dearmor --yes -o /etc/apt/keyrings/hpe.gpg
. /etc/os-release
echo "deb [signed-by=/etc/apt/keyrings/hpe.gpg] https://mirror-hpe.pkg.shecan.ir/SDR/repo/mcp $VERSION_CODENAME/current non-free" | sudo tee /etc/apt/sources.list.d/hpe-mcp.list
sudo apt update && sudo apt install -y ssacli
```

Undo / restore the default, Debian (linux)

```sh
sudo rm -f /etc/apt/sources.list.d/hpe-mcp.list /etc/apt/keyrings/hpe.gpg
sudo apt update
```

### dnf, yum: persistent (user- or system-wide configuration)

Configuration file (linux): `/etc/yum.repos.d/hpe.repo`

```ini
[hpe-mcp]
name=HPE Management Component Pack
baseurl=https://mirror-hpe.pkg.shecan.ir/SDR/repo/mcp/rocky/$releasever/x86_64/current/
enabled=1
gpgcheck=1
gpgkey=https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key1.pub
       https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key2.pub

[hpe-ilorest]
name=HPE iLOrest
baseurl=https://mirror-hpe.pkg.shecan.ir/SDR/repo/ilorest/rhel/$releasever/x86_64/current/
enabled=1
gpgcheck=1
gpgkey=https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key1.pub
       https://mirror-hpe.pkg.shecan.ir/SDR/hpePublicKey2048_key2.pub
```

Undo / restore the default (linux)

```sh
sudo rm -f /etc/yum.repos.d/hpe.repo
sudo dnf clean all
```

### dnf: persistent (user- or system-wide configuration)

Run (linux) (checked by hand)

```sh
sudo dnf install -y ssacli ilorest
```
