I use MiKTeX's package manager to install updates on linux TeXLive.
I put mpm in /opt/miktex/bin, which causes
kpse.rb to deduce that distribution=miktex (rather than web2c). Here
is a trivial patch that adds a test for mswin:
$ diff -C 3 kpse.rb.orig kpse.rb
*** kpse.rb.orig 2007-01-11 11:52:06.000000000 -0400
--- kpse.rb 2007-11-23 12:59:11.000000000 -0400
***************
*** 64,71 ****
# @@distribution = 'miktex' if ENV['PATH'] =~ /miktex[\\\/]bin/o
! if ENV['PATH'] =~ /(.*?)miktex[\\\/]bin/i then
! @@distribution = 'miktex' unless $1 =~
/(texmf\-mswin[\/\\]bin|bin[\/\\]win32)/i
end
@@re_true = /yes|on|true|1/i
--- 64,71 ----
# @@distribution = 'miktex' if ENV['PATH'] =~ /miktex[\\\/]bin/o
! if (Config::CONFIG['host_os'] =~ /mswin/) && (ENV['PATH'] =~
/(.*?)miktex[\\\/]bin/i) then
! @@distribution = 'miktex' unless $1 =~
/(texmf\-mswin[\/\\]bin|bin[\/\\]win32)/i
end
@@re_true = /yes|on|true|1/i
--
George N. White III