You are not logged in.

#1 2013-05-11 09:35:43

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

Location of "any" packages in a local repository structure

Hello, I have searched for an answer to this but have been unable to find one.

I want to build a personal repo for some packages. I have read how to do this using repo-add but I am unclear on where architecture-independent packages should be stored. What I understand from looking at official repos is the structure is along the lines of:

repo/
 ----os/
     ----686/
         ----x86_64/

Older posts on the forum like this one suggest a separate subdirectory for the "any" packages but, looking at the official repos, that doesn't appear to be current practice. It looks to me like these packages are duplicated in the architecture-specific subdirectories. For example:

.../core/os/x86_64/man-pages-3.51-1-any.pkg.tar.xz
.../core/os/x86_64/man-pages-3.51-1-any.pkg.tar.xz.sig
and
.../core/os/i686/man-pages-3.51-1-any.pkg.tar.xz
.../core/os/i686/man-pages-3.51-1-any.pkg.tar.xz.sig

From a saving diskspace perspective, it would be better not to have this duplication but I guess you could use hard links.

Another repo that I have used in the past is archlinuxfr and this does have a separate "any" tree.

So, I'd like to understand if it's supported to have a spearate "any" subtree ?

Last edited by starfry (2013-05-11 09:54:04)

Offline

#2 2013-05-11 13:20:15

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Location of "any" packages in a local repository structure

If you have a look at the repos at archlinux.fr, you will find the packages in "any" also duplicated in the other repos. As far as I understand, pacman only looks at the folder with the same architecture: http://url.to.mirror/archlinux.org/$repo/os/$arch

Offline

#3 2013-05-12 01:22:50

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Location of "any" packages in a local repository structure

For the official repo, there is no duplication. All packages (i686, x86_64, any) go in the pool directory. See ftp://ftp.archlinux.org/pool/ for example. Then a symlink is placed in the appropriate $repo/os/$arch/ directories.

Offline

#4 2013-05-13 12:22:46

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

Re: Location of "any" packages in a local repository structure

ah yes, that makes sense. thanks @snowman.

Offline

Board footer

Powered by FluxBB