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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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)

bin/rpm-q.dates.vendor (which list rpm by "vendor" name) :

rpm -qa --queryformat "%-15{vendor} %{name}-%{version}-%{release}.%-10{arch}. %{installtime:date}\n"|sort -n

					Anne

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux