Tiny Core Extensions > TCE Q&A Forum

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

<< < (5/9) > >>

bigpcman:
My strong personal preference would be to include the dependencies in the uninstall since I always uninstall tcz apps when I'm done using them and it's a pain to have to hunt done all the dependencies in the menu.

I assume if there is more than one app using the dep than you would not remove it.

Jason W:
Just uploaded a fixed tcz-uninstall, and from what I can see the issues have been corrected.  The --force option is also available.

I will add dependency handling in time.  I just don't have the time right now it will require, but maybe in the coming weeks.  

EDIT: Upon remembering, to deal with dependent apps requires downloading the .dep files for each extension installed that has one.  That is part of what makes tce-uninstall so slow at least with first usage, but the .list files have to be downloaded for tce-uninstall for it to function so fetching the dep files does not detract as much from tce-uninstall.  Tce-uninstall is made for PPI usage anyway, so that downloading of list and dep files only happens once.  But it would ruin the tcz-uninstall experience as the dep files would have to be downloaded again after every boot.  I will leave dep handling out of it to preserve the simple and fast usage of this utility. 

bigpcman:
Jason thank you for all the work on tcz-uninstall. I'm testing it out now.


So far everything looks great. There is just one small problem.
I installed samba which installs cups as a dependency to test out the uninstall tool.  After uninstalling both samba and cups the cups app still shows up in the desktop menu. A screen refresh does not help. It's gone from wbar so that part worked. However, the following cups files are still present. As near as I can tell there is no cups process running. Also a few of samba files are left behind.

./etc/cups
./etc/cups/cupsd.conf
./etc/cups/cupsd.conf.default
./etc/init.d/cups
./usr/local/share/doc/cups
./usr/local/share/cups
./usr/local/include/cups
./usr/local/tce.flwm/cups
./usr/local/lib/cups

./etc/samba/smb.conf
./etc/samba/private/smbpasswd
./etc/samba/private/secrets.tdb
./var/run/nmbd.pid

Jason W:
I will get to the flwm menu entries in time, it will require some awk scripting basically reversing the flwm_makemenu function.

The files you mention are the user.tar.gz files that are left over after uninstall.  That is by design as those are real files and depending on the extension maker they may be critical system files that get overwritten.  Therefore by default they are not deleted.  But I have added the deletion of those files to the --force option since --force always implies risk.  I also added a --purge command line function that allows the removal the the tcz and relaged files in the tcz directory.  That way one can uninstall a tcz and then use the appbrowser to install a newer version without issue.  There is also a dialog when the menu is used that asks if one wants the files in the tce directory deleted.  A --help option is also added.  Basically:

tcz-uninstall                      brings up menu
tcz-uninstall --help            echoes help contents
tcz-uninstall appname       uninstalls appname.tcz
tcz-uninstall appname --force       force uninstalls appname.tcz
tcz-uninstall appname --purge      uninstalls appname.tcz and it's files in the tce directory+
tcz-uninstall appname --force --purge         Combines --force and --purge, their order is not important.

jpeters:
This brings up some interesting issues regarding automatic functions in general. The beauty of PPR is that I can just delete the file from my tcz folder, and problem solved.  I can look at the dep list to choose other files I want to delete (it always helps to understand what they are)  Automatic functions like not being allowed to download an app because it's already installed are a nuisance  for the reason you stated, although the primary reason why I would need yet another automatic function such as tcz-unstall......so that I will be "allowed" to download an update.  Of course, I'll have to wait for tce-uninstall to extend the privilege to tce apps. 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version