Tiny Core Extensions > TCE Q&A Forum

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

<< < (6/9) > >>

bigpcman:
Jason I tried the tcz-uninstall again on samba and cups using the --force and --purge options. The results are exactly the same. All the same files remain present. Also I should note that samba must be killed (smbd and nmbd) before the uninstall tool is used or it won't work.

On the cups uninstall there are error messages:
sed: /usr/local/tce.menu/menu: no such file or directory
rm: can not remove '/user.tar.gz': no such file or directory

I'm a little confused about the cups menu entry removal problems  since I don't have a lot of experience messing around with flwm. But all I did was remove cups from /home/tc/.wmx/Applications and restarted  flwm and cups was gone. So I don't understand this:


--- Quote ---I will get to the flwm menu entries in time, it will require some awk scripting basically reversing the flwm_makemenu function.
--- End quote ---

edit: By the way the --force and --purge options are excellent ideas!

Jason W:
The flwm menu files in .wmx/Applications are not necessarily the same as the extension name, it can be any name that the extension maker wants in the menu.  It is derived from entries in /usr/local/tce.menu/extensionname, it is not just the simple scripted removal of a file based on extension name as that file can have any name.  It will take scripting to check for a couple of variables in the /usr/local/tce.menu/extensionname, Menu first then Program. 

I tested cups with --force and the files were deleted, the directories remained.  The directories remain as you do not want to remove /usr, /etc, and the like, which is what will happen if the extension maker includes base directories in the user.tar.gz.  I will test this more.

"sed: /usr/local/tce.menu/menu: no such file or directory" means you don't have a /usr/local/tce.menu/menu file, that file is supposed to be there, at least last I checked.  If not, a test for the file can occur.

"rm: can not remove '/user.tar.gz': no such file or directory" happens because the user.tar.gz is not symlinked into the filesystem.  That is cosmetic and can be fixed.

bigpcman:
I see your point on the flwm menu app removal. That will take some work.

Ok so after the uninstall of cups all this stuff will remain by design. Is that correct?



--- Code: ---tc@box:~$ sudo killall smbd
tc@box:~$ sudo killall nmbd
tc@box:~$ tcz-uninstall cups --force
sed: /usr/local/tce.menu/menu: No such file or directory
rm: cannot remove '/user.tar.gz': No such file or directory
cups has been uninstalled.
tc@box:~$ Xlib:  extension "Generic Event Extension" missing on display ":0.0".
tc@box:~$ cd /
tc@box:/$ sudo find . -name "*cups*"
./etc/cups
./etc/cups/cupsd.conf
./etc/cups/cupsd.conf.default
./etc/init.d/cups
./usr/local/share/doc/cups (help/   images/)
./usr/local/share/cups (banners/   charmaps/  charsets/  data/      drivers/   fonts/     model/     templates/)
./usr/local/include/cups
./usr/local/tce.flwm/cups
./usr/local/lib/cups (backend/  cgi-bin/  daemon/   filter/   monitor/  notifier/)
tc@box:/$

--- End code ---

Jason W:
Directories created by the installation of the tcz or the user.tar.tz are supposed to remain, removing empty directories created by the install of the tcz could be done.  I will consider it as it does make sense. 

I will check into why the files are left behind when using the --force option.  I will not have much time with TC this week so it may take a while.

bigpcman:

--- Quote from: Jason W on May 24, 2009, 08:59:21 PM ---Directories created by the installation of the tcz or the user.tar.tz are supposed to remain, removing empty directories created by the install of the tcz could be done.  I will consider it as it does make sense. 

I will check into why the files are left behind when using the --force option.  I will not have much time with TC this week so it may take a while.

--- End quote ---

Jason you are doing a great job! Thanks again for all your effort. Tcz-uninstall has been substantially improved. I look forward to your future improvements as they become available.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version