Tiny Core Linux

Tiny Core Extensions => TCE Corepure64 => Topic started by: gam on January 15, 2021, 01:10:54 AM

Title: How to download all packages of *.tcz.tree in one time?
Post by: gam on January 15, 2021, 01:10:54 AM
The pavucontrol.tcz.tree has many extensions and libs . How to install all of them in one time?
Title: Re: How to download all packages of *.tcz.tree in one time?
Post by: jazzbiker on January 15, 2021, 01:21:55 AM
Hi, charity!

Code: [Select]
tce-load -i pavucontrol
will install all the dependencies recursively. Dependencies are listed in Your /etc/sysconfig/tcedir/optional/pavucontrol.tcz.dep.
Title: Re: How to download all packages of *.tcz.tree in one time?
Post by: polikuo on January 15, 2021, 06:44:23 AM
In case you're looking for a shell solution
Code: [Select]
. /etc/init.d/tc-functions
getMirror
wget ${MIRROR}/pavucontrol.tcz.tree
for file in $(cat pavucontrol.tcz.tree); do
  [ -f "$file" ] || wget ${MIRROR}/${file} ${MIRROR}/${file}.md5.txt ${MIRROR}/${file}.dep
done
Title: Re: How to download all packages of *.tcz.tree in one time?
Post by: Rich on January 15, 2021, 06:50:26 AM
Hi charity
To download only:
Code: [Select]
tce-load -w pavucontrol
To install an already downloaded extension:
Code: [Select]
tce-load -i pavucontrol
To download, install, and add to  onboot.lst:
Code: [Select]
tce-load -wi pavucontrol
To download, install, and not add to  onboot.lst:
Code: [Select]
tce-load -wil pavucontrol
Title: Re: How to download all packages of *.tcz.tree in one time?
Post by: Rich on January 15, 2021, 07:39:35 AM
Hi polikuo
Some of those  .tree  files contain many duplicate entries. Reducing the list first may be faster than testing
for the same files over and over again:
Code: [Select]
. /etc/init.d/tc-functions
getMirror
wget ${MIRROR}/pavucontrol.tcz.tree

# awk '$1=$1' removes all whitespaces, sort -u sorts alphabetically and removes duplicate entries.
awk '$1=$1' pavucontrol.tcz.tree | sort -u > Extension.list

for file in $(cat Extension.list); do
  [ -f "$file" ] || wget ${MIRROR}/${file} ${MIRROR}/${file}.md5.txt ${MIRROR}/${file}.dep
done
Title: Re: How to download all packages of *.tcz.tree in one time?
Post by: gam on January 16, 2021, 07:24:15 AM
Thanks