Uninstalling a program from Cygwin in Windows XP

Dave Korn dave.korn@artimi.com
Fri Sep 14 14:38:00 GMT 2007

On 14 September 2007 15:14, Dave Korn wrote:

> On 14 September 2007 13:56, D wrote:
>> When I tried to ask the developer of the program how to remove the program
>> he indicated that the problem was not with fontforge, but with Cygwin,
>   He is wrong.
>   The command he provided is a simple delete of all the files that the
> installer should have installed.  If it doesn't work, it's not because
> Cygwin refused to delete the files for no reason, it's because he's
> specified the wrong paths in that command.   

  Hey, hang on a minute... it *is* because Cygwin's refusing to delete files
for no reason!

/tmp/ff/fontforge $ ls -la /usr/local/bin/fontforge.exe
-rwxr-xr-x 1 dk Domain Users 13700198 Sep 14 15:20
/tmp/ff/fontforge $ rm -rf /usr/local/bin/{fontforge,sfddiff}
/tmp/ff/fontforge $ ls -la /usr/local/bin/fontforge.exe
-rwxr-xr-x 1 dk Domain Users 13700198 Sep 14 15:20
/tmp/ff/fontforge $ echo rm -rf /usr/local/bin/{fontforge,sfddiff}
rm -rf /usr/local/bin/fontforge /usr/local/bin/sfddiff
/tmp/ff/fontforge $ rm -rf /usr/local/bin/fontforge /usr/local/bin/sfddiff
/tmp/ff/fontforge $ ls -la /usr/local/bin/fontforge.exe
-rwxr-xr-x 1 dk Domain Users 13700198 Sep 14 15:20
/tmp/ff/fontforge $ rm -rf /usr/local/bin/fontforge.exe
/tmp/ff/fontforge $ ls -la /usr/local/bin/fontforge.exe
ls: cannot access /usr/local/bin/fontforge.exe: No such file or directory
/tmp/ff/fontforge $

>   Basically, you need to find the files listed in the 'rm' command:
>> $ rm -rf /usr/local/bin/{fontforge,sfddiff} \
>> /usr/local/lib/{libgdraw,libgunicode,libuninameslist}* \
>> /usr/local/lib/pkgconfig/fontforge.pc \
>> /usr/local/man/man1/{fontforge,sfddiff}.1 \
>> /usr/local/share/doc/fontforge \
>> /usr/local/share/locale/*/LC_MESSAGES/FontForge.mo
> and delete them.  That's all the command does.

  Hmm.  So, after the rm command, we still have:





  So, there seems to be a failure of 'exe magic', and part of it is because he
hasn't allowed for the cygwin library naming scheme (and the fact that dlls go
into bin, not lib).  The working version of the command should therefore be:

$ rm -rf /usr/local/bin/{fontforge.exe,fontimage,sfddiff,pfaedit.exe} \
 /usr/local/bin/cyguninameslist* \
 /usr/local/lib/{libgdraw,libgunicode,libuninameslist}* \
 /usr/local/lib/pkgconfig/fontforge.pc \
 /usr/local/man/man1/{fontforge,fontimage,sfddiff}.1 \
 /usr/local/share/doc/fontforge \
 /usr/local/share/locale/*/LC_MESSAGES/FontForge.mo \

  You could pass it on to the fontforge guy if you liked.

Can't think of a witty .sigline today....

Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list