You are not logged in.

#1 2007-06-05 07:55:42

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

How does pacman extract the PKGINFO files from the repositories?

How does pacman extract the PKGINFO files from the packages in the repositories, without having to download all the packages first? I very much doubt the possibility of tar being network aware, so it has to be something else. Can someone give me some hints, that could save me browsing through the pacman source code? Thanks in advance.

Last edited by Lord_Bad (2007-06-05 07:56:21)

Offline

#2 2007-06-05 09:00:04

mitsoko
Banned
From: In the Coal Chamber
Registered: 2007-05-08
Posts: 143

Re: How does pacman extract the PKGINFO files from the repositories?

/var/lib/pacman/[repo]
local repo is that of installed packages
the relevant file is repo/[pkg]/desc

Last edited by raeven (2007-06-05 09:00:14)

Offline

#3 2007-06-05 11:09:10

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

Re: How does pacman extract the PKGINFO files from the repositories?

And where exactly on the mirror server does this info reside? I guess it is one single file?
======================
Never mind. I saw the db file while I was browsing through one repo. Thanks anyway.

Last edited by Lord_Bad (2007-06-05 11:18:42)

Offline

#4 2007-06-06 06:40:07

mitsoko
Banned
From: In the Coal Chamber
Registered: 2007-05-08
Posts: 143

Re: How does pacman extract the PKGINFO files from the repositories?

it's the .db.tar.gz file .. they extract to the folders in /var/lib/pacman

Offline

Board footer

Powered by FluxBB