Skip to content

Adding custom repositories

Ishimoto Shinobu edited this page May 2, 2021 · 1 revision

How to get custom repositories

Alright, let's assume you just installed Ataraxia GNU/Linux, and you want to install a piece of software. But, it doesn't happen to be in the Ataraxia GNU/Linux repositories. You're probably wondering how to get a repository that has something you need or want. But, you don't know how to add a repository. So, here is a guide on how to add custom repositories on Ataraxia GNU/Linux.

How to actually add custom repositories

Best way to get custom repositories, is cloning the repository into a specific folder under /usr/ports. Run the following command to clone the repository via git:

git clone [repository URL] /usr/ports/[repository name]

Replace the [repository URL] with the URL of the repository you wish to clone, and [repository name] with the name of the repository, and replace spaces with dashes.

Editing configuration

To add a custom repository, edit /etc/tsukuri/make.conf.

nano /etc/tsukuri/make.conf

Scroll down to "repos="/usr/ports/packages" and add your repository by adding a space, then type the path of the repository you just cloned earlier, like this:

repos="/usr/ports/packages /usr/ports/[repository name]"

Of course, replace [repository name] with the name of the repository. Write and quit.

Congrats! You just added a custom repository! Go ahead and try emerging a package from the custom repository!