6 How to create your own online Arch Linux repository on github and use it on any ArcoLinux

This article has been added to carli5 in order to have another article where we explain how to add a repository. If article 5 was clear, you can skip this article.

We created in another video a new package called openbox-themes-pambudi-git.

There is a general way to create a PKGBUILD explained in this tutorial and there is a building of a PKGBUILD in a clean chroot environment.

The goal is to be able to get our own packages in from our very own Arch Linux repository on ArcoLinux.
The goal is to include packages on our own ArcoLinuxB iso coming from our very own Arch Linux repository on ArcoLinux.

We investigate the Arch wiki what we can find.

Not much can be found. If you find interesting links, please share. We will add them to the bottom of the package.

We first create a github account. We will put our repository on github.

Then we create a new github called “teaching_repo”. This will contain the packages we will create.

We need to change the settings of the github pages.

Then we clone our newly created github.

git clone https://github.com/arcolinuxteaching/teaching_repo

Now we create folder called

x86_64

Then we build the package with a script called build-v1.sh and we end up with a pkg.tar.xz file and move that one in our repo in folder x86_64.

We need some extra files to efficiently use github.

https://arcolinuxd.com/getting-ready-for-the-next-phases/

We need two files :

  • git…
  • setup…

We will rename it later to another name because of the scripts.

We change the content of the setup script. It has to become your name and e-mail.

Run the setup.sh just once. After a clean install you will to re-run this script.

Then we run the git script and put in our login and password.

Now we need a database for pacman so it knows what packages it can install from this repository.

The command we need is repo-add in order to make a database that pacman can use to know what packages are on the repository.

repo-add teaching_repo.db.tar.gz *.pkg.tar.xz

We test out if pacman can understand what we just created by adding the repo to /etc/pacman.conf.

[teaching_repo]
SigLevel = Optional TrustedOnly
Server = https://arcolinuxteaching.github.io/$repo/$arch

Then we test with an update in the terminal.

We check what is in this repo with pamac-aur.

 

Then we create files for maintenance.

  • update.sh  to add the package to the database – repo-add

Let us add to the git.sh file the line to actually update the repository database.

Then something went wrong with the cdx86_64 and I was not able to fix it the ‘proper’ way.

I started afresh and used the cleanup.sh to force the update.

Beware this deletes everything and forces an update. All history is lost.

We change the names of the files because of the script cleanup.sh.

Sources

https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Custom_local_repository

https://fusion809.github.io/how-to-create-archlinux-repository/

 

adding brave-bin to your personal
Arch Linux Repository