WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to download all packages of *.tcz.tree in one time?  (Read 213 times)

Offline amg

  • Newbie
  • *
  • Posts: 29
How to download all packages of *.tcz.tree in one time?
« 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?
« Last Edit: January 15, 2021, 01:13:04 AM by charity »

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 518
Re: How to download all packages of *.tcz.tree in one time?
« Reply #1 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.

Offline polikuo

  • Sr. Member
  • ****
  • Posts: 478
Re: How to download all packages of *.tcz.tree in one time?
« Reply #2 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

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8800
Re: How to download all packages of *.tcz.tree in one time?
« Reply #3 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

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8800
Re: How to download all packages of *.tcz.tree in one time?
« Reply #4 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

Offline amg

  • Newbie
  • *
  • Posts: 29
Re: How to download all packages of *.tcz.tree in one time?
« Reply #5 on: January 16, 2021, 07:24:15 AM »
Thanks