Tiny Core Extensions > TCE Q&A Forum

tcz-uninstall.tce - does it have the -f option

(1/9) > >>

bigpcman:
Does tcz-uninstall.tce have the -f option that allows a command line uninstall of a single tcz app?

Jason W:
Yes, "tce-uninstall --force pango" would uninstall firefox without any regard to files above /usr/local, whether the extension is in use, or whether there are apps installed that depend on pango.  I will add that to the info file.

bigpcman:

--- Quote from: Jason W on May 21, 2009, 09:58:14 AM ---Yes, "tce-uninstall --force pango" would uninstall firefox without any regard to files above /usr/local, whether the extension is in use, or whether there are apps installed that depend on pango.  I will add that to the info file.

--- End quote ---
I presume you mean "tcz-uninstall".

bigpcman:

--- Quote from: Jason W on May 21, 2009, 09:58:14 AM ---Yes, "tce-uninstall --force pango" would uninstall firefox without any regard to files above /usr/local, whether the extension is in use, or whether there are apps installed that depend on pango.  I will add that to the info file.

--- End quote ---

I just tried  "tcz-uninstall --force tightvnc" as well as "tcz-uninstall --force tightvnc.tcz" and get the menu in both cases.

The menu works great. However I get the following message:
 Xlib:  extension "Generic Event Extension" missing on display ":0.0".
--------------------------------------------------------------------------------------------------
edit: I just tried  "tcz-uninstall --force tightvnc &"  in a script and got the following results:


--- Code: ---rm: cannot remove '/user.tar.gz': No such file or directory
bash has been uninstalled.
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
--- End code ---

In this case tightvnc had already been removed so it looks like the uninstall automatically picked up the first tcz on the menu (bash) and uninstalled it. Yikes - that's not good!
---------------------------------------------------------------------------------------------------
edit 2: I just tried  "tcz-uninstall  &" in a script and got the same above results.

Jason W:
My bad, I thought we were talking about tce-uninstall.  I misread.

I will look at tcz-uninstall when I get home.  I cannot remember if there is a --force option to it as it is not needed, tcz-uninstall does not need a force option as it's only check is if the extension's files are in use.  You would not want to uninstall an extension in use anyway, but I will see if I can't fix the scenario you described.

Navigation

[0] Message Index

[#] Next page

Go to full version