WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline gam

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

Offline jazzbiker

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

  • Hero Member
  • *****
  • Posts: 758
Re: How to download all packages of *.tcz.tree in one time?
« Reply #2 on: January 15, 2021, 09: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

Offline Rich

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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: How to download all packages of *.tcz.tree in one time?
« Reply #4 on: January 15, 2021, 10: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 gam

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