SliTaz SliTaz Forum

You are not logged in.

#1 2018-08-31 01:07:15

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Using a local mirror

Has anybody recently been able to use a local mirror, as it was possible in previous versions of Slitaz? While it is simple enough to create a local mirror, actually using it is another matter as "tazpkg -sm" seems to ignore the given path and always defaults to online operation. This is apparent when I go temporarily offline which results in tons of Failed' and warning messages. It seems that each tazpkg operation is accompanied by a recharging operation which attempts to access the online mirror regardless of the chosen local mirror.

Maybe I'm overlooking something important and I'd be glad if someone could point me to a possible solution ... and even if there isn't a solution, at least I could then give up trying.

Offline

#2 2018-08-31 05:58:02

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Using a local mirror

Hi Darjeeling,

TazPkg was evolved over a years so some old "tricks" don't work anymore.

Since some time in the past local repository required the same database files as online repository has.

If your TazPkg is younger the three years (version 846 or later), the solution is to run following command which will help you to make all the required packages database files:

[c]tazpkg mkdb /path/to/your/folder/with/tazpkg/packages[/c]
Later in the case if you added or removed some packages from this repository you need to update the packages database files:

[c]tazpkg mkdb /path/to/your/folder/with/tazpkg/packages --forced[/c]
(Option "--forced" will remove old database (if any) before to proceed to create the new one.)

Looks like it's all, now you can add this local repository using the "tazpkg setup-mirror" or "tazpkg setup-undigest" or "tazpkg add-undigest". See the help for all of these commands:

[c]tazpkg -h setup-mirror
tazpkg -h setup-undigest[/c]
Have a nice day.

Offline

#3 2018-08-31 07:21:34

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: Using a local mirror

Thanks for your swift reply, Aleksej. I will try this out over the weekend and let you know how it went.

> Have a nice day.

... same to you!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]