How to add local repository (Arch)

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

How to add local repository (Arch)

Postby dedanna1029 » 07 Dec 2011, 03:42

The Arch wiki is horridly confusing on this. My computer is offline right now, so I've downloaded updates from school onto a usb stick - a folder for each, core, extra, and community. I also copied/pasted the wiki instructions to add a local repo, but none of it is working. I've commented out the Include /etc/pacman.d/mirrorlist lines from /etc/pacman.conf file. Now, where exactly do I put those folders for the local repos, and how? I've tried in each individual section of pacman.conf, I've tried them in the [custom] section for them, I always get errors on pacman -Syu. Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How to add local repository (Arch)

Postby dedanna1029 » 07 Dec 2011, 03:49

Fyi, on this I've even tried switching to each folder and doing a 'pacman -U *.*, and that errors out. It throws back a libarchive error. Is the format of the usb stick (FAT - has to be for school) doing this maybe? If so I'm up the creek. The school's computers are all Windows, with the exception of one Mac. Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How to add local repository (Arch)

Postby dedanna1029 » 07 Dec 2011, 05:26

Update: I'd misinterpretted a few things at the wiki. First I had to move the files onto my hard drive, then move all the pkg.tar.xz files into one folder. Then, I moved the core.db.tar.gz file in with them, and ran: 'repo-add /path/to/that/folder/core.db.tar.gz /path/to/that/folder/*.pkg.tar.xz'. That got the repo added, but I'm still loose on where and how to put it into pacman.conf. Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: How to add local repository (Arch)

Postby viking60 » 07 Dec 2011, 12:09

This might help:
https://wiki.archlinux.org/index.php/Of ... f_Packages

Especially the part where you add your folder in pacman.conf

Code: Select all

[folder]
Server = file:///home/you/folder

And then syncronizing it with:

Code: Select all

pacman -Sy
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How to add local repository (Arch)

Postby dedanna1029 » 08 Dec 2011, 03:30

That's pretty much what I've done and am still getting errors, so have screwed it up somewhere down the road. Pacman is still looking for each repo, and they're all commented out in pacman.conf but the one that I created. *sigh - Maybe something will click on it later. Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: How to add local repository (Arch)

Postby viking60 » 08 Dec 2011, 12:31

Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How to add local repository (Arch)

Postby dedanna1029 » 09 Dec 2011, 02:31

Yeah, that's what I used, was those instructions.
The name of the db.tar.gz file is the repository name.

Is it just written like, "core.db.tar.gz", or just "core", or "core.db" (which it seems to want, but core.db.tar.gz was used)? And again, where in pacman.conf is it added?

Got examples? Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: How to add local repository (Arch)

Postby viking60 » 09 Dec 2011, 12:58

Go three posts up and there you will see how to add in pacman.conf.
You set the name of your folder in []
[dedanas_Arch_folder]
and patch

Add it before [testing] in pacman.conf

As for the rest I can not say it any better than the Arch Wiki:
Simply store all of the built packages to be included in the repository in one directory, and execute the following command (where repo is the name of the custom repository):

Code: Select all

$ repo-add /path/to/repo.db.tar.gz /path/to/*.pkg.tar.xz
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How to add local repository (Arch)

Postby dedanna1029 » 10 Dec 2011, 17:47

viking60 wrote:Add it before [testing] in pacman.conf

This is the part I wanted to know. Thanks.

viking60 wrote:

Code: Select all

$ repo-add /path/to/repo.db.tar.gz /path/to/*.pkg.tar.xz

Dun did. It's not working but probably because I have it in the wrong place in pacman.conf, and possibly in the wrong way, too.

Thanks a bunch. This helps.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How to add local repository (Arch)

Postby dedanna1029 » 15 Feb 2012, 10:08

Ok, so I am about to blow your mind here. Get out the guns and start shooting me.

Code: Select all

su
password
cd /path-to-where-updates-are
pacman -U *.*


Takes a few tries to weed out the ones you don't need, but it works very simply... You don't really *need* to add it as a repo...
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Help”