Re: Remove all packages from specific repository

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



Morten P.D. Stevens wrote on 09/17/2010 07:06 AM:
  > What's the best way to remove all amavisd-new packages (and it's 
dependencies) from EPEL repo and reinstall it from rpmforge repo?

To see what repos you have installed packages from:
[code]
rpm -qa --qf "%{VENDOR} \n" | sort | uniq
[/code]
The result should be a list of VENDOR tags.  To see the packages from a 
particular Vendor, for example EPEL:[code]
rpm -qa --qf "%{NAME} %{VENDOR} \n" | grep "Fedora Project" | cut -d ' ' 
-f 1 | sort
[/code]
The result should be a list of EPEL packages.

Remove all, or all related to the packages you want to remove, then 
disable EPEL, or set it to a lower priority than RPMforge. Enable 
RPMforge, and install the packages you want.

If the RPMforge packages are all later versions, then the prior removal 
should not be necessary. A simple "yum update" with the correct repo 
configuration should be sufficient.

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


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux