Need help create Online-Repo with GitHub

mgame

#1

I’m going to try GitHub for my Online-Repo. If this works out for me. I’ll release a new version with small changes.

I need help to create a Online-Repo. If anyone know how to make it the right way. Please, reply with instructions.

Here’s a link to my GitHub Repo.


Building custom iso with AUR
#2

Which step are you having trouble with? Creating a repo, uploading it to github or getting the repo link for it?

To create a repo, build your packages and put them in a directory that is a clone of your desired git repo. Then use repo-add to create a database file for the packages:

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

Then just git add ., git commit -m "initial commit" and git push. There you have your repo. Then you just need the right download link for it. Find someone else who uses github for this and adapt their example.


#3

I already created a custom repo. I already uploaded it to GitHub. Is just I’m having trouble using GitHub link as Custom Online Repo.

Here’s an example I’m having trouble with.

[mGAMe]
SigLevel = Never
Server = https://github.com/ABOhiccups/mGAMe/$repo/$arch

Pacman is not picking up my repo and I don’t know what I did wrong. Any ideas?


#4

Yes

Unfortunately I don’t know exactly how to do this. I would imagine that you have to use the same link format that is used when downloading stuff github with curl. The one example I found that used github was

[mikelpint]
Server = https://mikelpint.github.io/repository/archlinux/repo

That is using the github hosted website instead of a normal git repo. :man_shrugging: This might be helpful:

For using s3 instead of github, I found this neat guide:

https://disconnected.systems/blog/archlinux-repo-in-aws-bucket/#dependencies

I hope you have luck with hosting your repo!


#5

There are several things to adjust

  • On Github you are missing the $arch folder (x86_64)

The Server = line have faults, $repo must match the name in the square brackets [], $arch don’t exist yet and you need to use raw.github.com in the url [List] User Created Repositories

Final result should be
Server = https://raw.github.com/ABOhiccups/$repo/master/Repo/$arch


For example https://github.com/FabioLolix/repository/tree/master/Lolix_repo_stable_devel/x86_64

became

[Lolix_repo_stable_devel]
SigLevel = Never
Server = https://raw.github.com/FabioLolix/repository/master/Lolix_repo_stable_devel/x86_64

for a repo


#6

I got it to work! Thank you for your help.

Anyway, scene one of AUR Package are too big to upload directly to GitHub Website and GitHub only allows limit upload size of each file. What command should I enter on Terminal to upload a new files to GitHub repo that has files listed without delete a GitHub repo and create a new GitHub repo?

If anyone have a list of Free Open Source Games they want to see in mGAMe like SuperTuxKart as example. Just reply with a list of packages and I’ll take a look at it.


#7

I tried your method and it works for me. Thank you for your help too!


#8

Limit is 200MB, endless sky and electron based programs not compressed are above that

git push

the meaning of that in unclear to me sorry


closed #9

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.