APT: pattern matching with aptitude?

Madison McGaffin greyhill-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue May 22 00:44:26 EDT 2007


On Mon, 2007-05-21 at 22:03 -0400, Kristian Hermansen wrote:
> I thought I would clean up my installation and remove any unnecessary
> packages I might have accrued over time.  popularity-contest does a
> nice job of letting me know what has been used recently.  However, I
> decided that I would also just purge all the documentation file
> packages on my box.  How would I do this?  And does anyone have other
> suggestions or warnings?
> 
> These fail:
> $ sudo aptitude purge -- -doc$
> $ sudo aptitude purge -- *-doc$
> $ sudo aptitude purge -- ~n-doc$
> $ sudo aptitude purge -- ~n-doc
> -- 
> Kristian Hermansen

I don't know much about aptitude, but apt-get will do what you want:

sudo apt-get remove .*-doc$

does the trick.

--
Madison McGaffin


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.






More information about the Discuss mailing list