Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: bonbob on December 11, 2017, 06:58:11 AM

Title: extension manager
Post by: bonbob on December 11, 2017, 06:58:11 AM
As i understand tce and tce-load utilities let only install/mount extensions, but not manage installed TCZ's. tce can not show list of extensions on local storage, list of dependences. It can not delete extension, can't even show TCZ info, because INFO-file stay in repository. Honestly, Tiny Core has no packet manager, only small simply tool for loading extension.
Will be some changes in the nearest future?
Title: Re: extension manager
Post by: Juanito on December 11, 2017, 07:40:25 AM
patches to add additional functionality would be gratefully received
Title: Re: extension manager
Post by: polikuo on December 11, 2017, 07:48:28 AM
It can not delete extension ...

FYI
Quote
tc@box:~$ tce-audit
Usage: tce-audit { updatedeps | builddb | auditall | fetchmissing | nodepends | notrequired | marked | clearlst }  /path/to/tcedir/
       tce-audit { dependson | requiredby | audit | delete } /path/to/tcedir/extension.tcz
       tce-audit { remove }
tc@box:~$ tce-audit delete squashfs-tools.tcz
getFlash.tcz
getlocale.tcz
submitqc.tcz
squashfs-tools.tcz cannot be deleted.
That means squashfs-tools.tcz cannot be deleted because it's a dependence of getFlash, getlocale and submitqc.
If no message returned, rebooting the machine would delete the requested extension(s).
Title: Re: extension manager
Post by: bonbob on December 11, 2017, 08:27:22 AM
I'll Try to use tce-audit. I did not know about it. Thanks!  :)
Title: extension manager
Post by: coreplayer2 on December 11, 2017, 10:08:07 AM
Did you try APPS ?

Quote
tce can not show list of extensions on local storage, list of dependencies. It can not delete extension, can't even show TCZ info

APPS is the Tinycore Extension Manager, it performs all the above and more...


Sent from my iPhone using Tapatalk
Title: Re: extension manager
Post by: bonbob on December 11, 2017, 11:37:11 AM
Code: [Select]
root@TCL:~# tce-audit notrequired /etc/sysconfig/tcedir/
/usr/bin/tce-audit: line 282: can't open tce.lst: no such file
The following are NOT required by any other extensions:

for any action tce-audit says that can not find tce.lst. For what is this file?
Title: Re: extension manager
Post by: curaga on December 11, 2017, 02:08:56 PM
Run "tce-audit builddb", that's a necessary step for most of the other functions. You don't need to pass the directory if using the default, like you are.
Title: Re: extension manager
Post by: Lee on December 11, 2017, 08:32:52 PM
Perhaps an option in tce-load to download the list and info files for an extension, just as a starting point?  I used to do that with a script but it turned out I pretty much never used those files anyhow... I had thought to write some additional utility scripts but it's still on my ever growing to-do list.
Title: Re: extension manager
Post by: curaga on December 12, 2017, 03:14:31 AM
There's a helper script, tce-fetch.sh, that can be used. "tce-fetch.sh nano.tcz.info" will download that to the current dir.
Title: Re: extension manager
Post by: Greg Erskine on December 12, 2017, 04:17:58 PM
I found the existing tce scripts give you all the tools to maintain extensions.

Incomplete list of tinycore command line tools.

Code: [Select]
Command          Function
ab                     browse local and remote applications
tce                    browse local and remote applications
tce-ab                 browse local and remote applications
tce-audit
tce-fetch.sh
tce-load               load local applications
tce-remove             allow removal of uninstalled (OnDemand) extensions via tce-audit
tce-run                download and run applications
tce-setdrive
tce-setup
tce-size               show total size of extension and dependencies
tce-update
tcemirror.sh

Pasted from http://wiki.tinycorelinux.net/wiki:tc_commands
Title: Re: extension manager
Post by: Lee on December 14, 2017, 01:31:26 PM
Clearly, I need to pay more attention to these things - I'm getting behind the curve.   :(
Title: Re: extension manager
Post by: Misalf on December 14, 2017, 03:30:58 PM
I believe some of these commands are mainly intended for being used internally.
Title: Re: extension manager
Post by: curaga on December 15, 2017, 05:10:45 AM
Some aren't very user-friendly, but they're all good to use from CLI if you don't want to use Apps.