WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: persistence  (Read 2706 times)

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 801
persistence
« on: June 30, 2011, 08:48:07 PM »
Hello

i was just wondering about how TCL works. I know that it has a TCE file for extension persistence.

Does this mean that if i install an extentsion like "mpg123" that this install will be lost
if i choose to power down without backup?

What is the personal directory for in TCL?

Does the personal directory remember changes to the OS but is not concerned with
extensions?

Or is it just a personal persistent data storage area?

thanks

Vince.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: persistence
« Reply #1 on: June 30, 2011, 08:55:15 PM »
The tce directory is HD or USB drive based, and stores installed applications.
It is persistent across boots.
Backups are used store home directories and volatile data.
Backups are stored as a compressed tar archive in the tce directory.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 801
Re: persistence
« Reply #2 on: June 30, 2011, 09:01:54 PM »
Hello

oh i understand

THis explains things. I was confused as to why, after installing an extension,
it persisted after a reboot even when i had rebooted with NONE as the backup option.

So if i want to un-install an extension i do it from the Build dependanceies database right?

i have some of my extensions as "on demand".

If i load say  "mpg123" by on demand....is there a case for gaining back spare ram
if you then un-install "mpg123"  while TCL is still live?

it this un-installing possible? and does it give you back spare ram and performance?

If the above is possible, how do you do it?

thanks,

Vince.


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: persistence
« Reply #3 on: July 01, 2011, 03:03:11 AM »
Live uninstalling is not supported. Uninstalling via appsaudit takes place at the next reboot.
The only barriers that can stop you are the ones you create yourself.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: persistence
« Reply #4 on: July 01, 2011, 08:51:46 AM »
It is not supported, but you can still do it.
umount /tmp/tcloop/extension and rm /usr/local/tce.installed/extension.
For mpg123 this will work, but don't expect other extensions to always work this way.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: persistence
« Reply #5 on: July 01, 2011, 12:24:47 PM »
The umount will fail if any of the files are in use.
If it does unmount, the symlinks will still be present and broken.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 801
Re: persistence
« Reply #6 on: July 02, 2011, 04:31:24 AM »
Hello,

I was comparing Puppy Linux with TCL.

They have a system in puppy that uses
"SFS" app files. You can then use a desktop tool called SFSlinker which allows you to install and un-install SFS programs while Puppy is live. It gives you back the ram in efficiency terms. (think so).

i don't completely understand all this subject at all.

I was merely wondering if "un-installing" on- demand apps was possible while TCL was live. I'd imagined that if it was possible it would give you back the spare ram. (ofcourse, presumably TCL is a lot more complicated and different than puppy)

thanks

Vince.




Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: persistence
« Reply #7 on: July 02, 2011, 06:52:19 AM »
If you want everything good and clear you might first remove all symlinks with the help of extension.list file or /tmp/tcloop/extension folder listing, then rm /usr/local/tce.installed and umount /tmp/tcloop/extension.

But still there can be extensions with scripts creating links or e.g. config files not included in former listings. These would have to be be removed manually, which is probably the reason for not providing an official solution.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 801
Re: persistence
« Reply #8 on: July 02, 2011, 08:44:34 AM »
Ahhh...

I am not experienced with TCL at all.


I will take a look at what you said. However, i was hoping your theory would apply to
every "on demand" app in the same way, but you say that this is not the case.

but i will still take a look at what you have put.

thanks very much.

Vince.



Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: persistence
« Reply #9 on: July 02, 2011, 10:27:37 AM »
But keep in mind, it is often easier to just reboot.