Setting Up a Local Repository
In environments where internet access is restricted or controlled, you can host RPM packages in a local repository.
This allows you to install and update ASI using standard yum or dnf commands across multiple systems.
1. Prepare the Repository Directory
Create a directory to hold your RPM files. This can be located on a web server (recommended) or locally on a system:
sudo mkdir -p /opt/ISS/repo
cd /opt/ISS/repo
Copy the required RPM packages into this directory.
| Package | Description |
|---|---|
| iss-asi-3.3.1 | asi3 components |
| iss-core-1.5.2 | Interlink core |
| semver_15-0.32.1 (rhel8) | PostgreSQL semver |
| semver_15-0.32.1 (rhel9) | PostgreSQL semver |
| GPG Key | Repository signing key for verification | Download ASI GPG Key |
2. Install Required Repository Tools
Make sure the createrepo utility is installed:
sudo dnf install -y createrepo
3. Create the Repository Metadata
Run createrepo to generate the repository index files:
sudo createrepo /opt/ISS/repo
This command will create a repodata directory containing the repository metadata required by dnf and yum.
If you later add or remove RPMs, rebuild the metadata using:
sudo createrepo --update /opt/ISS/repo
4. Import the ASI GPG Key
Download and import the official ASI GPG key used to sign packages:
sudo rpm --import https://download.interlinksoftware.com/keys/ASI-GPG-KEY.pub
To verify it’s installed:
rpm -qa gpg-pubkey*
5. Create the Repository Definition File
Create a repo file in /etc/yum.repos.d/ to make this repository available to yum and dnf.
sudo nano /etc/yum.repos.d/asi-local.repo
Example configuration:
[asi-local]
name=ASI Local Repository
baseurl=file:///opt/ISS/repo
enabled=1
gpgcheck=1
gpgkey=https://download.interlinksoftware.com/keys/ASI-GPG-KEY.pub
If hosting on a web server, replace file:///opt/ISS/repo with your repository URL, e.g.:
baseurl=http://repo.internal.local/asi
6. Verify the Repository
Clean and refresh your repository cache:
sudo dnf clean all
sudo dnf repolist
You should see asi-local in the list of enabled repositories.
7. Install ASI from the Repository
Once your local repository is configured, you can install ASI using standard package manager commands:
sudo dnf install -y iss-asi
Or update to the latest version:
sudo dnf update iss-asi
8. Optional: Serve the Repository via HTTP
If you want other systems to access the repository, host it on a simple web server such as nginx or Apache.
Example using httpd:
sudo dnf install -y httpd
sudo systemctl enable --now httpd
sudo ln -s /opt/ISS/repo /var/www/html/asi
Your repository will now be accessible at:
http://<your-server>/asi
Update your baseurl accordingly in /etc/yum.repos.d/asi-local.repo.
Summary
| Step | Description |
|---|---|
| 1 | Create /opt/ISS/repo and copy RPMs |
| 2 | Install createrepo |
| 3 | Generate repository metadata |
| 4 | Import ASI GPG key |
| 5 | Create .repo definition file |
| 6 | Verify repository is active |
| 7 | Install ASI via dnf or yum |
| 8 | (Optional) Serve repository over HTTP |