[CentOS] Removing All Packages From Repository
m.roth at 5-cent.us
m.roth at 5-cent.usMon Feb 13 21:39:13 UTC 2012
- Previous message: [CentOS] Removing All Packages From Repository
- Next message: [CentOS] bug in repo affecting perl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [CentOS] Removing All Packages From Repository
- Next message: [CentOS] bug in repo affecting perl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list