WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Re install tcz  (Read 309 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 369
Re install tcz
« on: October 23, 2018, 04:06:09 PM »
Hi all,

gdrive app has stopped working due ca-certificates problem.

I was following this process, then realised I can't reboot the server at the moment

> tce-audit builddb
> tce-audit delete appname
> sudo reboot (.tcz .tcz.md5.txt .tcz.dep removed on reboot)

So I've done

> tce-audit builddb
> tce-audit delete ca-certificates

so far

I also removed ca-certificates line from the onboot.lst file

I then treid tce-load -i in my tce/optional folder to be told ca-certificates is already installed.

Is there a way to move forwards with re-installing this tcz without a reboot ?

Thanks :)
Live long and prosper.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1700
Re: Re install tcz
« Reply #1 on: October 23, 2018, 04:42:40 PM »
I'd say no.

When uninstalling extensions they get deleted on reboot before they could be loaded.
If uninstall successful you can reinstall after reboot no problem.
However, currently running processes might have loaded into memory part of what the depending extensions contain.

You might be able to go the 'dirty' way and kill processes that depend on files contained in the extension in question, unmount the dep extension, remount it with  tce-load -fc extension.tcz  ( -f  for force overwriting existing files [symlinks] and  -c  for copy to filesystem in RAM [or  copy2fs , eats RAM; overwrites symlinks with real files]) then restart your app so it can reload the updated files without rebooting the hole system.

Reboot of either the app or the hole system is needed.
« Last Edit: October 23, 2018, 05:04:19 PM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5964
Re: Re install tcz
« Reply #2 on: October 23, 2018, 04:45:39 PM »
Hi remus
... I then treid tce-load -i in my tce/optional folder to be told ca-certificates is already installed. ...
Go to  /usr/local/tce.installed/  and delete  ca-certificates.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1700
Re: Re install tcz
« Reply #3 on: October 23, 2018, 05:10:27 PM »
Good point.
Forgot that one!
(part of the dirty way before  tce-load -cf ...)
« Last Edit: October 23, 2018, 05:16:08 PM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline polikuo

  • Sr. Member
  • ****
  • Posts: 352
Re: Re install tcz
« Reply #4 on: October 23, 2018, 07:36:55 PM »
Hi remus
There are several unofficial scripts on the forum:
tce-unload, tce-uninstall, tce-umount

If you'd like to use my script (tce-umount)
There are some setups you'll need to do before unmounting
Code: [Select]
sudo mkdir -m 775 -p /var/log/tce-tool
sudo chgrp -R staff /var/log/tce-tool
printf '%s\n:1\t%s\n\n' ca-certificates ca-certificates > /var/log/tce-tool/cata.log
touch /var/log/tce-tool/tce.db
tce-umount ca-certificates

Offline remus

  • Sr. Member
  • ****
  • Posts: 369
Re: Re install tcz
« Reply #5 on: October 24, 2018, 07:32:33 PM »
Hi remus
... I then treid tce-load -i in my tce/optional folder to be told ca-certificates is already installed. ...
Go to  /usr/local/tce.installed/  and delete  ca-certificates.

My thanks to all contributors to possible solutions.

This one works great without the need of a reboot.
Live long and prosper.