FS#29143 - Display packages installed after a given date
Attached to Project:
Pacman
Opened by Ma Jiehong (jiehong) - Wednesday, 28 March 2012, 08:50 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 29 March 2012, 00:23 GMT
Opened by Ma Jiehong (jiehong) - Wednesday, 28 March 2012, 08:50 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 29 March 2012, 00:23 GMT
|
Details
Currently, if one upgrade his system and if something went
wrong at the next boot for example, it might come from one
of the packages that have been installed.
If we don't remember what was the list of installed packages, well, the only way I thought about was to "pacman -Qi" but it displays too many informations and is not easy to parse. It would be nice to be able to have a list of packages that have been installed after a given date. I first thought about doing a script with regexps but well, it would be more convenient to have it in pacman itself. |
This task depends upon
Closed by Dave Reisner (falconindy)
Thursday, 29 March 2012, 00:23 GMT
Reason for closing: Won't implement
Additional comments about closing: Plenty of solutions for this already available.
Thursday, 29 March 2012, 00:23 GMT
Reason for closing: Won't implement
Additional comments about closing: Plenty of solutions for this already available.
when=$(date -d yesterday +%s)
expac --timefmt '%s' '%l\t%n' | while read dt pkg; do
if (( dt > when )); then
printf '%s %s\n' "$dt" "$pkg"
fi
done
if you want to get into bash4.2, you can even get pretty printed dates using the %(%c)T token in the print format string.
Seems like I made a stupid request… I'll think twice times more next time!