Re: [CentOS] Remove all 3rd party rpms

2008-04-01 Thread Louis Lagendijk

On Tue, 2008-04-01 at 07:37 -0700, Michael A. Peters wrote:
> Joseph L. Casale wrote:
> > How does one do this?
> > 
> > Also, is it possible an rpm installed by rpm and not yum does not 
> > indicate what it provides to yum when yum queries needed dependencies 
> > for another package?
> > 
> > Thanks!
> > jlc
> > 
> > 
> 
> While you have gotten an answer that works - I believe there is a 
> cleaner way.
> 
> I don't remember the exact command - and it may require the installation 
> of a utilities package - but if you remove the 3rd party repositories 
> from your yum configuration, there is a command that will identify and 
> remove orphaned packages - packages which do not exist in any of the yum 
> repositories yum is configured to use.
> 
> Anyone recall what that command is?

yum list extras
Louis

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Remove all 3rd party rpms

2008-04-01 Thread Akemi Yagi
On Tue, Apr 1, 2008 at 7:37 AM, Michael A. Peters <[EMAIL PROTECTED]> wrote:
>
>  While you have gotten an answer that works - I believe there is a
>  cleaner way.
>
>  I don't remember the exact command - and it may require the installation
>  of a utilities package - but if you remove the 3rd party repositories
>  from your yum configuration, there is a command that will identify and
>  remove orphaned packages - packages which do not exist in any of the yum
>  repositories yum is configured to use.
>
>  Anyone recall what that command is?

package-cleanup ?

Akemi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Remove all 3rd party rpms

2008-04-01 Thread Michael A. Peters

Joseph L. Casale wrote:

How does one do this?

Also, is it possible an rpm installed by rpm and not yum does not 
indicate what it provides to yum when yum queries needed dependencies 
for another package?


Thanks!
jlc




While you have gotten an answer that works - I believe there is a 
cleaner way.


I don't remember the exact command - and it may require the installation 
of a utilities package - but if you remove the 3rd party repositories 
from your yum configuration, there is a command that will identify and 
remove orphaned packages - packages which do not exist in any of the yum 
repositories yum is configured to use.


Anyone recall what that command is?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Remove all 3rd party rpms

2008-03-30 Thread Joseph L. Casale
>awk is also your friend.
>
> | awk '{ print $1 }'
>
>Alan.
Thanks everyone!
jlc


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Remove all 3rd party rpms

2008-03-30 Thread Alan Bartlett
On 30/03/2008, Joseph L. Casale <[EMAIL PROTECTED]> wrote:
>
> >xargs is your friend. :-)
>
> Very nice! So how do I pass just the first string into it? The output is
> seperated by spaces,,,


awk is also your friend.

 | awk '{ print $1 }'

Alan.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Remove all 3rd party rpms

2008-03-30 Thread Joseph L. Casale
>xargs is your friend. :-)

Very nice! So how do I pass just the first string into it? The output is 
seperated by spaces,,,
Thanks!
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Remove all 3rd party rpms

2008-03-30 Thread Ray Van Dolson
On Sun, Mar 30, 2008 at 11:44:19AM -0600, Joseph L. Casale wrote:
> >Not sure what you are aiming to do, but you can find all non-CentOS
> >packages by the command on this wiki:
> >
> >http://wiki.centos.org/TipsAndTricks/YumAndRPM#head-0424f619b79e293fc743a39795b9805f1f73d249
> >
> >Akemi
> 
> Thats exactly what I need, is there a simple way to pipe the output
> into rpm or yum and remove all that?  Thanks!
> jlc

xargs is your friend. :-)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Remove all 3rd party rpms

2008-03-30 Thread Joseph L. Casale
>Not sure what you are aiming to do, but you can find all non-CentOS
>packages by the command on this wiki:
>
>http://wiki.centos.org/TipsAndTricks/YumAndRPM#head-0424f619b79e293fc743a39795b9805f1f73d249
>
>Akemi

Thats exactly what I need, is there a simple way to pipe the output into rpm or 
yum and remove all that?
Thanks!
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Remove all 3rd party rpms

2008-03-30 Thread Akemi Yagi
On Sun, Mar 30, 2008 at 10:31 AM, Joseph L. Casale
<[EMAIL PROTECTED]> wrote:
>
>
> How does one do this?
>
>  Also, is it possible an rpm installed by rpm and not yum does not indicate
> what it provides to yum when yum queries needed dependencies for another
> package?
>
>  Thanks!
>  jlc

Not sure what you are aiming to do, but you can find all non-CentOS
packages by the command on this wiki:

http://wiki.centos.org/TipsAndTricks/YumAndRPM#head-0424f619b79e293fc743a39795b9805f1f73d249

Akemi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Remove all 3rd party rpms

2008-03-30 Thread Joseph L. Casale
How does one do this?

Also, is it possible an rpm installed by rpm and not yum does not indicate what 
it provides to yum when yum queries needed dependencies for another package?

Thanks!
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos