Debian Packages Installed

I use this to determine which debian packages are installed and when they were installed.  This is easy to do with RPMs.  Debian based systems make it a little more complex task.

echo -e "State     tLast change t tName" > PkgLog && ls -lsrt 
/var/lib/dpkg/info/*.list | awk '{print $6"t"$7"  "$8"t"$9}' | 
sed -e "s//var/lib/dpkg/info///" -e "s/.list//" -e "s/^0t/Removed 
 t/" -e "s/^[0-9]*t/Installedt/" |less 

This entry was posted in CLI HOWTOs, HOWTOs. Bookmark the permalink.