transforming tgz to xzm batch command

Technical issues/questions of an intermediate or advanced nature.
User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

transforming tgz to xzm batch command

Post#1 by francois » 18 Oct 2023, 23:11

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.
Prendre son temps, profiter de celui qui passe.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

transforming tgz to xzm batch command

Post#2 by ncmprhnsbl » 18 Oct 2023, 23:24

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

transforming tgz to xzm batch command

Post#3 by francois » 25 Oct 2023, 13:54

Thanks!
Prendre son temps, profiter de celui qui passe.

Post Reply