[Centos] Knowing what packages come from where in apt/yum

Dag Wieers dag at wieers.com
Tue Feb 22 01:26:36 UTC 2005


On Tue, 22 Feb 2005, Anne Possoz wrote:

> Karanbir Singh wrote:
> > try this command : ( all on one line )
> > 
> > for f in `rpm -qa` ; do  echo -n $f ; rpm --qf " %{VENDOR} 
> > %{DISTRIBUTION} \n" -q $f ; done
> > 
> > this should tell you where the packages installed on your machine came 
> > from.
> 
> I use 2 nice commands:
> 
> bin/rpm-q.dates (which sort rpms by installation time) :
> 
> rpm -qa --queryformat "%{installtime} %{name}-%{version}-%{release}.%-10{arch} %{installtime:date}\n"|sort -n|sed -e 's/^[^ ]* //'
> 
> (less usefull now that /var/log/yum.log is available but easiest to read,
> for me at least)

Almost similar to:

	rpm -qa --last

--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]



More information about the CentOS mailing list