Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: PingPing on May 03, 2009, 06:06:46 AM
-
I'm remastering TCL and I've stripped out the GUI. However, I don't know the command line tool to use to (a) list, and (b) install, the .tce packages. Could someone please kindly tell me?
-
(a) list: Do you mean list the packages you have? Or list the contents of them? Or list the available packages in the repository?
(b) install: tce-load /path/to/file
-
sudo /usr/bin/tce-fetch.sh links-2.2.tce
sudo /usr/bin/tce-fetch.sh openssl-0.9.8h.tcel
sudo /usr/bin/tce-fetch.sh graphics-libs-1.tcel
you probably don't need the graphics-libs.
tce-load links-2.2.tce
tce-load openssl-0.9.8h.tcel
tce-load graphics-libs-1.tcel
links ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tce/
links will list the extensions. you can view the html tables, but they're too large to fit in an 80-char-width vt. if you can do more than 80x25 you may be able to view the fancier list, but you may prefer the plain list anyway.
-
tce-fetch is not recommended as it does not check md5 sums nor handle dependencies and requires 'sudo'.
$ tce-load appname.tce wget install
Handles md5 checking and dependencies, downloads and 'installs' the named extension as using appbrowser would do.
$ tce-load appname.tce wget
This will handle md5 checking and dependencies and downloads. This is like using appbrowser "Download Only"
If using command line tools, be sure that you are storing the extensions into a proper "tce" directory or you will experience much grief.
-
$ tce-load appname.tce wget install
Handles md5 checking and dependencies, downloads and 'installs' the named extension as using appbrowser would do.
SWEET!
i'm sure i've read that, but when you do something one way, sometimes you have to see the better way a couple times before you really figure it out. i didn't know there was a command line option that did deps too. very cool. as an apt-get user in ubuntu, i may use tce-load appname.tce wget install from now on. does this go all the way back to 1.2 or is it newer than that?
-
From the beginning. But be warned that storing extensions is arbitary locations will cause confusion and likely greif. Command line tools represent the 'expert' mode.
-
But be warned that storing extensions is arbitary locations will cause confusion and likely greif.
good point. "cd $whateverthevariableforthetcefolderis" should be part of the instructions too.
-
You might make it slightly simpler by adding a tce-wget wrapper to $HOME/.local/bin
cd /path/to/my/tce/folder
tce-load "$1" wget install
Then you can run tce-wget appname.tce from any directory.
It's not much different, but saves having to cd