Check if a repository is being used?

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri Jul 6 15:57:24 UTC 2007


Bruno Wolff III wrote:
> On Fri, Jul 06, 2007 at 09:12:02 -0500,
>   Stanczak Group <justin at stanczakgroup.com> wrote:
>> If you have a couple different repositories and you'd like to remove 
>> one, is there a way to see if there are any packages on your system that 
>> are from the repository?
> 
> The low level way to do this is edit the files in /etc/yum.repos.d .
> There is an enabled flag that should be 1 if the repo is to be used and 0
> if it isn't.
> 
If the repo adds an identification to the name, you can use
something like: (for Livna)

yum list installed *lvn*

If not, you could try something like:

yum list extras > list1
<disable repo>
yum list extras > list2
diff list1 list 2 | less

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20070706/d1b79f68/attachment-0002.bin 


More information about the users mailing list