Page 1 of 1

transforming tgz to xzm batch command

Posted: 18 Oct 2023, 23:11
by francois
I am trying transforming tgz to xzm with a batch command. I have a very old knowledge of programmation. Here is what I tried:

Code: Select all

for pkgs in /mnt/sdb3/50_porteus/xfce/qt6/*.txz; do txz2xzm; done
It did not work:

Code: Select all

root@porteus:/mnt/sdb3/50_porteus/xfce/qt6# for pkgs in /mnt/sdb3/50_porteus/xfce/qt6/*.txz; do txz2xzm; done

Convert Slackware's TXZ package into .xzm compressed module
usage:
 options:  -x : use xz compression. 
 options:  -z : use zstd compression. 
 if no option is given xz is used. 
           -h       : show this usage. 

/usr/bin/txz2xzm package.txz
/usr/bin/txz2xzm package1.txz package2.txz package3.txz
/usr/bin/txz2xzm /folder/with_packages/*


Convert Slackware's TXZ package into .xzm compressed module
usage:
 options:  -x : use xz compression. 
 options:  -z : use zstd compression. 
 if no option is given xz is used. 
           -h       : show this usage. 

/usr/bin/txz2xzm package.txz
/usr/bin/txz2xzm package1.txz package2.txz package3.txz
/usr/bin/txz2xzm /folder/with_packages/*


Convert Slackware's TXZ package into .xzm compressed module
usage:
 options:  -x : use xz compression. 
 options:  -z : use zstd compression. 
 if no option is given xz is used. 
           -h       : show this usage. 

/usr/bin/txz2xzm package.txz
/usr/bin/txz2xzm package1.txz package2.txz package3.txz
/usr/bin/txz2xzm /folder/with_packages/*


Convert Slackware's TXZ package into .xzm compressed module
usage:
 options:  -x : use xz compression. 
 options:  -z : use zstd compression. 
 if no option is given xz is used. 
           -h       : show this usage. 

/usr/bin/txz2xzm package.txz
/usr/bin/txz2xzm package1.txz package2.txz package3.txz
/usr/bin/txz2xzm /folder/with_packages/*

root@porteus:/mnt/sdb3/50_porteus/xfce/qt6# updatedb
root@porteus:/mnt/sdb3/50_porteus/xfce/qt6# locate double-conversion-3.2.0-x86_64-1gv
/var/slapt-get/salix/l/double-conversion-3.2.0-x86_64-1gv.txz
root@porteus:/mnt/sdb3/50_porteus/xfce/qt6#
Any suggestions welcomed.

transforming tgz to xzm batch command

Posted: 18 Oct 2023, 23:24
by ncmprhnsbl
you've created a loop variable but not used it. and in should preface a command or some sort of array ( for pkgs in $(find /blah/blah/ -type f` -name "*.txz"); do txz2xzm $pkgs; done )
in any case, according to txz2xzm help, just:

Code: Select all

/usr/bin/txz2xzm /mnt/sdb3/50_porteus/xfce/qt6/*.txz

transforming tgz to xzm batch command

Posted: 25 Oct 2023, 13:54
by francois
Thanks!