On Tuesday 23 October 2007 03:38, David Bolt wrote:
> On Mon, 22 Oct 2007, Randall R Schulz wrote:-
>
> <snip>
>
> >Is there a CLI way to list packages grouped by repository from which
> >they were installed or those that are "orphaned?" ...
>
> I don't know about a way of identifying which package comes from a
> particular repository, but this might help narrow things down a bit:

Thanks. I'll check that out. I already managed to find most of the 
leftovers using this command:

% rpm -qa --qf '%{NAME}\t%{DISTRIBUTION}\t%{PACKAGER}\n' \
   |egrep -v '10.3|gpg-pubkey' \
   |expand -25,60 \
   |sort   

There are so very many RPM query keywords, I only scanned the list 
quickly and picked a few that looked useful. There are probably more 
and better ones for this purpose.

I also noticed that it seems some of the current packages from 10.3 
Packman repository bear the DISTRIBUTION value 'openSUSE 10.2 (i386)' 
(or i586).


> [EMAIL PROTECTED]:~> cat ./rpm_list.sh

May I suggest that this is a case for using an attachment? The list 
allows them, you know, and they're much easier to deal with than 
program code as loose text within an email message (though I commend 
you for not allowing the lines to wrap—most people don't even bother to 
do that).


> #!/bin/bash
>
> ...


> Usage is simply ./rpm_list.sh . Pipe the output through sort and then
> less to see the sorted list, or redirect it to a file for later
> browsing.
>
> On what is now a 10.3 system that was upgraded from 10.0, and with a
> few packages added from the community repositories, here's a few
> snippets from the output to show what to expect:
>
> ...
>
>
> Regards,
>         David Bolt


Randall Schulz
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to