You are not logged in.

#1 2013-06-07 22:09:44

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 912

[Solved]how generate a *.files for pkgfile whit a custom off-line repo

I reated a repo whit repo-add (and options) but I noticed that I cannot get throw manpages a way to create a $repo.files for pkgfile
my reppo is on my home for now, I learning how create one,thisis why I ask

any 'hiden' or special combination of script for creating that file??

another think is... abs download from the master svn branch right??

Last edited by Jristz (2013-06-08 02:53:45)


Well, I suppose that this is somekind of signature, no?

Offline

#2 2013-06-07 22:19:44

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,633
Website

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

$ repo-add -h

Options:
  -f, --files       update database's file list

Is that not what you are looking for?

You might also find repo-add_and_sign useful for maintaining a local database.

Offline

#3 2013-06-07 22:25:57

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 912

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

is not what I try to make, but that tool is good, I going to test that repo-add-n-sign (or whatever the name is)

the .files archive is used by pkgfile --update for that tool and I wnat generate that for a ofline repo (probably when I get enough exp I swithc to an onlinebut this is now in my 'Lista de quehaceres')


Well, I suppose that this is somekind of signature, no?

Offline

#4 2013-06-07 23:19:16

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,092
Website

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

No, repo-add -f is definitely what you want.

Offline

#5 2013-06-07 23:22:19

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,633
Website

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

$  repo-add --files foo.files.tar.gz pacman-4.1.1-1-x86_64.pkg.tar.xz 
==> Adding package 'pacman-4.1.1-1-x86_64.pkg.tar.xz'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'depends' db entry...
  -> Creating 'files' db entry...
==> Creating updated database file 'foo.files.tar.gz'

Second to last line:

"  -> Creating 'files' db entry...

The "$repo.files" database is just a regular database with extra files in it. You can name it whatever you want. Pacman can use it the same way it uses the regular "$repo.db" file.

The only reason that servers include both $repo.db and $repo.files is that $repo.files is larger. Most people do not need the file lists, so there is no need to download them. If you are running a local server, then you should just create one database with "repo-add --files", can create a symlink:

$ repo-add --files foo.db.tar.gz
$ ln -s foo.db files.db

Otherwise, you have to run repo-add twice. Once to create $repo.db without the file lists, then once again to create $repo.files with the lists.


My repo-add_and_sign script does this automatically. It can also batch-sign packages and databases.

Offline

#6 2013-06-08 01:52:37

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 912

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

:: Updating 6 repos...
warning: download failed: file::///home/dragon/Proyectos/Paquetes/jristz.files: Couldn't open file //home/dragon/Proyectos/Paquetes/jristz.files
error: failed to update repo: jristz

That file is downloaded by pkgfile program

repo-add -f ./jristz.db ./*pkg*
repo-add -f ./jristz ./*pkg*
repo-add -f ./jristz.files ./*pkg*

not work and jristz.files isnot created at repo-add time

I sure that I missing anithink but manpages not clarify that to me or I cannot underestand correctly

why not use repo-add-n-sig from xyne? .. I want know what I making and how make it manually and only when I know how thinks work use a tool


Well, I suppose that this is somekind of signature, no?

Offline

#7 2013-06-08 02:27:06

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,633
Website

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

Jristz wrote:
repo-add -f ./jristz.files ./*pkg*

*sigh*

Please read the output of commands. They contain important information.

wrong
$  repo-add -f ./jristz.files ./*pkg*
==> ERROR: './jristz.files' does not have a valid archive extension
right
$ repo-add -f ./jristz.files.tar.gz ./*pkg*
==> Adding package './pacman-4.1.1-1-x86_64.pkg.tar.xz'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'depends' db entry...
  -> Creating 'files' db entry...
==> Creating updated database file './jristz.files.tar.gz'

Offline

#8 2013-06-08 02:51:20

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 912

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

ok that is not explain correctly on the manpage

but yes fix, and thanks

but why manpages not mention that the extension (db, files) an by diferent from db or any hint about that??

Last edited by Jristz (2013-06-08 02:56:14)


Well, I suppose that this is somekind of signature, no?

Offline

#9 2013-06-08 04:03:41

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,379
Website

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

Jristz wrote:

but why manpages not mention that the extension (db, files) an by diferent from db or any hint about that??

Because you fail at reading?

man repo-add wrote:

       A package database is a tar file, optionally compressed. Valid
       extensions are “.db” or “.files” followed by an archive extension of
       “.tar”, “.tar.gz”, “.tar.bz2”, “.tar.xz”, or “.tar.Z”. The file does
       not need to exist, but all parent directories must exist.

Offline

#10 2013-06-08 04:12:54

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 912

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

Allan wrote:
Jristz wrote:

but why manpages not mention that the extension (db, files) an by diferent from db or any hint about that??

Because you fail at reading?

man repo-add wrote:

       A package database is a tar file, optionally compressed. Valid
       extensions are “.db” or “.files” followed by an archive extension of
       “.tar”, “.tar.gz”, “.tar.bz2”, “.tar.xz”, or “.tar.Z”. The file does
       not need to exist, but all parent directories must exist.

Ok I not see this part... I have a power failure recently ... but anyway probably I fail to read it corretly (or underestand correctly) anyway... lrzip, and unpacked (whitout extension) are unsupported by design?? (yes, I want underestand)


Well, I suppose that this is somekind of signature, no?

Offline

#11 2013-06-08 07:57:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

Offline

#12 2016-02-02 09:20:47

den23513
Member
Registered: 2016-02-02
Posts: 1

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

Hello,
Today, after updated pacman to version 5, repo-add "-f" option not working any more. Please advise. Thank you.

Offline

#13 2016-02-02 09:59:53

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 3,252
Website

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

@den23513,

please don't bump old threads. Open a new one for your problem.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.

Offline

#14 2016-02-02 10:22:48

WorMzy
Forum Moderator
From: England
Registered: 2010-06-16
Posts: 5,059

Re: [Solved]how generate a *.files for pkgfile whit a custom off-line repo

Mod powers activate!

Don't open a new topic in this case, one was opened yesterday: https://bbs.archlinux.org/viewtopic.php?id=208347


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

Board footer

Powered by FluxBB