[plug] apt-get regex

Russell Steicke r.steicke at bom.gov.au
Tue Jul 27 22:51:46 WST 2004


On Tue, Jul 27, 2004 at 10:20:41PM -0400, Tim White wrote:
> I wish to install some packages with a regex. The command I want to run 
> is 'apt-get install xmms*' but I have a few broken packages and 
> confilcts when I do that. Instead of writing out all the packages I want 
> (about 30) is there a way to say 'apt-get install xmms* exclude 
> xmms-alarm-bmp1 xmms-arts xmms-xmmplater xmmsarts'?
> I know that it is probably just a modification of the regex but not sure 
> how to do it.

Try this:

  apt-get install xmms\* xmms-alarm-bmp1- xmms-arts- xmms-xmmplater- xmmsarts-

The trailing '-' on the package name turns install into remove.  I
_think_ apt handles the apparently conflicting instructions for those
packages in the way you want.




-- 
Russell Steicke

-- Fortune says:
Health nuts are going to feel stupid someday, lying in hospitals dying
of nothing.
		-- Redd Foxx



More information about the plug mailing list