Bug 277321

Summary: Enable Yum to remove all packages from a repository
Product: [Fedora] Fedora Reporter: Martin Jürgens <ma>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 7CC: ivazqueznet, james.antill, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-04 20:50:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Jürgens 2007-09-04 20:25:39 UTC
This is a feature request.

It should be possible to remove all packages from a repository using Yum.

For example, when the user wants to switch from Freshrpms to Livna, he probably
wants to remove all packages from Freshrpms.

Currently, there is no easy way provided to do so, as the Freshrpms packages do
not have freshrpms in there name.

Comment 1 Ignacio Vazquez-Abrams 2007-09-04 20:36:51 UTC
Putting the... sanity... of such a feature aside for the moment, it is possible
to get the key belonging to a repo and then query/remove packages signed with
that key.

rpm -qa gpg-pubkey --qf "%{version}: %{summary}\n"

Comment 2 Seth Vidal 2007-09-04 20:50:13 UTC
right now we just don't have any metadata available to us in the installed pkgs
which would let us do this. In the future it is possible we might, however even
then I do not think this would be enabled in the core yum functionality. It
could, however, be in a plugin someone writes.