From: Keith M. <kei...@us...> - 2011-03-28 20:40:09
|
On 28/03/11 17:13, Charles Wilson wrote: > I thought that mingw-get-0.2-alpha-{1,2} was supposed to support > removal operations: It is, and as the attached session transcript shows, it WJFFM. > - Added provisional support for removal of packages which have been > previously installed. This is fully functional, but naive with > respect to dependencies; it will aggressively remove any package > scheduled for removal, even if this may break another (dependant) > package. > > However: > > $ mingw-get --version mingw-get version 0.2-alpha-2 Copyright (C) > 2009, 2010, 2011, MinGW Project > > This is free software; see the product documentation, or source > code, for copying and redistribution conditions. There is NO > WARRANTY; not even an implied WARRANTY OF MERCHANTABILITY, nor of > FITNESS FOR ANY PARTICULAR PURPOSE. > > $ which perl /bin/perl.exe > > $ mingw-get remove msys-perl-bin > Load catalogue: package-list.xml > Load catalogue: mingw32-package-list.xml > Load catalogue: mingw32-autoconf.xml > ... > Load catalogue: msys-base.xml > Load catalogue: mingw-developer-toolkit.xml > Load catalogue: msys-system-builder.xml > remove: perl-5.6.1_2-2-msys-1.0.13-bin.tar.lzma > removing release perl-5.6.1_2-2-msys-1.0.13-bin.tar.lzma > > $ which perl > /bin/perl.exe > > What gives? Dunno. An incomplete installation manifest, perhaps? Did you install with an early version of mingw-get, which which may not have recorded the files list? > P.S. Feature request for mingw-get: > > a) some sort of 'list'-like operation that shows what FILES are > included in a specific package (perhaps limited only to those > packages that are installed): > > $ mingw-get contents msys-perl-bin [*] > bin/perl.exe > bin/msys-perl5_6.dll > ... > > [*] magically maps to "perl-5.6.1_2-2-msys-1.0.13-bin" because that > is the version I currently have installed. > > b) some sort of 'query' operation that shows what package provides a > specific file (again, perhaps limited only to files that [a] exist on > disk, and [b] are provided by an installed package. E.g. not "I > wonder what package out there that I have not installed would provide > /mingw/bin/dos2unix.exe" but rather "Gee, where did this > /bin/soelim.exe come from?" > > $ mingw-get query-file /bin/dos2unix.exe > cygutils-dos2unix-1.3.4-4-msys-1.0.13-bin [**] > > [**] or maybe some processed representation that includes the > generic mingw-get package representation as well as the > fully-qualified name: msys-cygutils-dos2unix-bin > (cygutils-dos2unix-1.3.4-4-msys-1.0.13-bin) The above would be covered by: $ mingw-get show -files package-name-bin $ mingw-get show -what-provides foo.exe (or some such), which are already in my ideas pool for some future release; (of course, neither works at present). Maybe we should collect these ideas into a TODO file within the distribution, or on a feature request ticket. -- Regards, Keith. |