Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

APT: pattern matching with aptitude?



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.







BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org