Hi! I know it has been solved many times, but how will i get a list of all installed packages from EPEL repository? I know for rpmforge it is rpm -qa package=*rf* . Thanks! David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080407/68f7c09a/attachment-0001.html>
Or to be more specific, what i am trying to do is to remove epel repo and all installed packages from that repo , how will i achieve it? Thanks again D. On Mon, Apr 7, 2008 at 8:20 PM, David Hl??ik <david at hlacik.eu> wrote:> Hi! > > I know it has been solved many times, but how will i get a list of all > installed packages from EPEL repository? I know for rpmforge it is rpm -qa > package=*rf* . > > Thanks! > > David >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080407/c2ceb114/attachment-0001.html>
On Monday 07 April 2008, David Hl??ik wrote:> Or to be more specific, what i am trying to do is to remove epel repo and > all installed packages from that repo , how will i achieve it? > > Thanks again > > D. > > On Mon, Apr 7, 2008 at 8:20 PM, David Hl??ik <david at hlacik.eu> wrote: > > Hi! > > > > I know it has been solved many times, but how will i get a list of all > > installed packages from EPEL repository? I know for rpmforge it is rpm > > -qa package=*rf* . > > > > Thanks! > > > > Davidrpm -qa --queryformat="%{name}-%{version}-%{release} %{packager}\n"|grep Fedora|sed -e "s|Fedora Project <http://bugzilla.redhat.com/bugzilla>||g"| xargs yum remove that should do it
On Mon, Apr 07, 2008 at 08:21:17PM +0200, David Hl??ik wrote:> Or to be more specific, what i am trying to do is to remove epel repo and all > installed packages from that repo , how will i achieve it?Something like this: rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE}|%{DISTRIBUTION}\n' | \ egrep "Extras Packages for Enterprise Linux$" | cut -f1 -d'|' Should list all the EPEL packages. You could then call yum remove on each one or rpm -e. Maybe there's a slicker way to do this. Ray