Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Repository management..

Abhiraj Rik edited this page Jun 19, 2023 · 1 revision

Just like the popular package managers.. nemesis-pkg also allows users to set/create your custom package repositories..

Adding a repo

In order to add a repo:-

Open /etc/nemesis-pkg/config.py and look for an array known as REPOS

REPOS = [
    ["https://source-of-pkglist/repo-database.PKGLIST" # repository url, 
     "repo-database.PKGLIST" # file where database will be written , 
     "repo-name" # name of your repository],
]

this is the repository structure of adding repos.. in order to add a repo. define an array into REPOS and on the first value(url) enter the link to the database, second value(db file) is the file where the database will be written and the third value(repo name) will be the name of your repository

Disabling a repository:

In order to disable a repository open /etc/nemesis-pkg/config.py and look for REPOS.. you can either delete the array or better you can comment it to disable it..

REPOS = [
    # ["https://source-of-pkglist/repo-database.PKGLIST" , "repo-database.PKGLIST" # file where database will be written , "repo-name"], -- Disabled Repository
]

Creating a repository:

Every repository on nemesis-pkg has its own structure and here is the sample structure of a repository:-

repo/
- pkg/
-- build
-- flist
-- patch.diff
- repo.PKGLIST

repo.PKGLIST is the database file in which the package and their versions are listed

If you do not know how to create a package then refer to "Creating/Maintaining your own package.."

Clone this wiki locally