SliTaz SliTaz Forum

You are not logged in.

#1 2016-01-11 15:15:36

milkboy
Member
Registered: 2011-06-27
Posts: 12

how to set local repo? (from packages-4.0.iso)

i have been trying to get the local repo to work without success

i mounted the iso. tried changing the repo via terminal

#tazpkg setiup-mirror

then tazpkg recharge but i cant seem to install anything.

see picture

i also tried to change "/etc/slitaz/slitaz.conf"

change the line

LOCAL REPOSITORY="/media/pakages-40/pakages/4.0/"

what am i doing wrong?

p.s.cant seem to find any post or documentation regarding this.

[attachment=41146,2203]

Offline

#2 2016-01-11 15:28:31

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

Re: how to set local repo? (from packages-4.0.iso)

Mojo has once helped me with this and it's been working well ever since.

Offline

#3 2016-01-11 16:11:54

milkboy
Member
Registered: 2011-06-27
Posts: 12

Re: how to set local repo? (from packages-4.0.iso)

to make it easier i move all .tazpkg from the .iso to my home folder

then cd to that folder

root@slitaz:/home/milk/4.0# ls -1 *.tazpkg | sed s'/.tazpkg//' > packages.list

root@slitaz:/home/milk/4.0# ls packages.*

packages.desc   packages.list   packages.txt

packages.equiv  packages.md5

root@slitaz:/home/milk/4.0# tazpkg setup-mirror

Current mirror(s)

================================================================================

  /home/milk/4.0

Please enter URL of the new mirror (http, ftp or local path). You must specify

the complete address to the directory of the packages and packages.list file.

New mirror(s) URL : /home/milk/4.0/

Setting mirror(s) to : /home/milk/4.0/

root@slitaz:/home/milk/4.0# tazpkg recharge

Main is up to date.

root@slitaz:/home/milk/4.0# tazpkg get-install zip

Main is up to date.

Unable to find: zip in the mirrored packages list.

Unable to find: get-zip in the mirrored packages list.

cant get it to work..........

did i miss something from your post?

Offline

#4 2016-01-11 16:45:12

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

Re: how to set local repo? (from packages-4.0.iso)

Suppose all your local packages are in "/media/seagate/repo" (change the path to suit your setup) and your "packages.list" file has been created and is in there as well, then you can set up your local mirror like this ...

in 3.0: tazpkg setup-mirror /media/seagate/repo/

in 5.0: tazpkg -sm /media/seagate/repo/

... I'm not 100% sure how it was in 4.0. You can check it by running "tazpkg -help"

Offline

#5 2016-01-11 20:08:58

llev
Member
Registered: 2011-12-09
Posts: 568

Re: how to set local repo? (from packages-4.0.iso)

Maybe there's something broken in /var/lib/tazpkg, type this and report:

[c]ls -l /var/lib/tazpkg[/c]

Offline

#6 2016-01-12 02:42:47

milkboy
Member
Registered: 2011-06-27
Posts: 12

Re: how to set local repo? (from packages-4.0.iso)

milk@slitaz:~$ ls -l /var/lib/tazpkg

total 36

lrwxrwxrwx    1 root     root            36 Jan 11 16:02 files.list.lzma -> file://home/milk/4.0/files.list.lzma

lrwxrwxrwx    1 root     root            18 Jan 11 16:14 ID -> /home/milk/4.0//ID

drwxr-xr-x  242 root     root         12288 Jan 11 16:17 installed

-rw-r--r--    1 root     root         13820 Jan 11 16:17 installed.md5

-rw-r--r--    1 root     root            16 Jan 11 16:03 mirror

-rw-r--r--    1 root     root            15 Jan 11 16:03 mirror.bak

lrwxrwxrwx    1 root     root            28 Jan 11 16:02 mirrors -> file://home/milk/4.0/mirrors

lrwxrwxrwx    1 root     root            34 Jan 11 16:02 packages.desc -> file://home/milk/4.0/packages.desc

lrwxrwxrwx    1 root     root            35 Jan 11 16:02 packages.equiv -> file://home/milk/4.0/packages.equiv

lrwxrwxrwx    1 root     root            34 Jan 11 16:02 packages.list -> file://home/milk/4.0/packages.list

lrwxrwxrwx    1 root     root            33 Jan 11 16:02 packages.md5 -> file://home/milk/4.0/packages.md5

lrwxrwxrwx    1 root     root            33 Jan 11 16:02 packages.txt -> file://home/milk/4.0/packages.txt

-rw-r--r--    1 root     root             0 Jan 11 14:30 packages.up

milk@slitaz:~$ cat /var/lib/tazpkg/mirror

/home/milk/4.0/

packages.list content is right.

the nothing wrong with the packages, and i can do a manual install

this a fresh install btw

@Darjeeling

thats what i did. i moved all the packages to ~/4.0 as i have shown

4.0 uses tazpkg setup-mirror

but i cant get it to work

Offline

#7 2016-01-12 04:42:54

hackdorte
Member
Registered: 2014-06-05
Posts: 83

Re: how to set local repo? (from packages-4.0.iso)

Mojo explains here: http://forum.slitaz.org/topic/how-can-i-use-packages-40iso

Offline

#8 2016-01-12 10:10:25

milkboy
Member
Registered: 2011-06-27
Posts: 12

Re: how to set local repo? (from packages-4.0.iso)

thx that did it.

i thought install.sh was a script for installing slitaz

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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