FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-13-2012, 08:39 PM
 
Default Removing All Packages From Repository

Ljubomir Ljubojevic wrote:
> On 02/13/2012 09:54 PM, Matt wrote:
>> Is there a way to remove all packages from a certain repository such
>> as RPMFORGE?
>
> yum remove $(yum list installed | grep repoforge | awk '{ print $1 }')
>
> where "repoforge" is the part of the repository name that show up in yum
> list
>
That's silly:
yum remove $(yum list installed | awk '{if ($0 ~ /repoforge) { print $1;}}')

mark, still awking after all these years.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 03:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org