Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: Blues_Wolf on June 17, 2014, 11:44:15 AM

Title: SCRIPT - Download all dependencies of a .tcz package
Post by: Blues_Wolf on June 17, 2014, 11:44:15 AM
Hello all,

This is a script I made for re-packaging outside the TCL environment. Maybe tce-load already does it, but anyway. I'll leave it here in case someone needs it.
It downloads all packages in a list file, all it's dependencies, and it's dependencies dependencies, etc...

1) Verify the first 2 constants (mirror URL and kernel version)
2) Point the script to a text file with the list of packages, it can be a file like the onboot.lst or a .dep of a tcz packages with the list of dependencies.

Example:
I Want to download all dependencies for a .TCZ file, of the 4.x version
1) I leave the default constants
readonly cstMIRROR=http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/
readonly cstKERNEL=3.0.21-tinycore

2) I download the .dep file for that package from the mirror and point the script to it.
./gettcz.sh FreeRDP-ffmpeg.tcz.dep

After some time, all packages will be in the current folder.

Anyway, I hope it's useful for someone..

Regards
PS: It requires de wget package. I tested it on debian.
Title: Re: SCRIPT - Download all dependencies of a .tcz package
Post by: malikawan on June 30, 2014, 12:57:38 AM
Not Working
Title: Re: SCRIPT - Download all dependencies of a .tcz package
Post by: Blues_Wolf on July 03, 2014, 12:10:45 PM
Not Working

Would you be more specific?

It's working in Linux Mint