Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: manit123 on November 06, 2013, 01:49:45 AM

Title: configuring local repository
Post by: manit123 on November 06, 2013, 01:49:45 AM
hi , I have downloaded the entire repository from http://tinycorelinux.net/5.x/x86/tcz/ in folder /repo
How can I set local folder as repository ?
Title: Re: configuring local repository
Post by: Lee on November 06, 2013, 05:10:10 AM
You're really not supposed to do that as it takes a while and eats up a largish amount of server bandwidth  But having done so, the simplest way would be to just drop the whole mess into your /etc/sysconfig/tcedir/optional/ drectory... Though I'd think twice before adding everything to onboot.lst.    ;D
Title: Re: configuring local repository
Post by: manit123 on November 07, 2013, 06:25:12 AM
4191 tcz files in all stored in my hard disk.
sum of all files found using command
Code: [Select]
\ls -l *tcz > /cygdrive/d/calculate-size-of-all-tcz.txt
cat /cygdrive/d/calculate-size-of-all-tcz.txt | awk 'BEGIN{sum=0};{ sum=sum+$5};END{print sum}'
is
9073320469 , 8.4GB (unit conversion via http://www.matisse.net/bitcalc/)
I digressed.
Question)Can I place a link of repo-folder inside /etc/sysconfig/tcedir/optional/ OR I have to create link to each file ?
Title: Re: configuring local repository
Post by: Rich on November 07, 2013, 11:14:27 AM
Hi manit123
Quote
hi , I have downloaded the entire repository from http://tinycorelinux.net/5.x/x86/tcz/ ...
Quote
4191 tcz files in all stored in my hard disk.
I show TC5.x has 1601 extensions available and TC4.x has 4260.
Quote
Question)Can I place a link of repo-folder inside /etc/sysconfig/tcedir/optional/ OR I have to create link to each file ?
I'm not certain, but I think you may need to use the  tce=  boot code to point to your repo so your extensions are found
while booting.
Title: Re: configuring local repository
Post by: beroje on November 07, 2013, 06:33:33 PM
OR I have to create link to each file ?
Google Translator
In version 5.0.2, Yes

Traductor de Google
En la versión 5.0.2, Sí
Title: Re: configuring local repository
Post by: manit123 on November 08, 2013, 01:43:54 AM
I have used debian based distros like ubuntu etc.
In them , I used to create packages.gz using dpkg-scan-packages then add the packages.gz folder to /etc/apt/sources.list
before installing i copied required debs to /var/cache/apt/archives . OS thinks that files have been downloaded earlier & installs them now.
I have seen info.lst being downloaded by tiny core before downloading & installing packages
is there any such provision in tiny core ?
Title: Re: configuring local repository
Post by: curaga on November 08, 2013, 07:39:29 AM
As already said, put them all in your optional folder. Then you can pick them using Apps onboot/ondemand maintenance, or temporarily via Load local.
Title: Re: configuring local repository
Post by: manit123 on November 14, 2013, 09:37:27 AM
creating link of all tcz & dep files worked.

It would have been great , if creating a link to tcz containing folder had sufficed