Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Feature Request
Category Output
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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.
Comment by Dan McGee (toofishes) - Wednesday, 28 March 2012, 14:52 GMT
Looking at pacman.log doesn't accomplish this? There are several such scripts, including `paclog-pkglist` from pacman-contrib, that will do this for you and have all the parsing, if you just copy your logfile and trim it at the appropriate place.
Comment by Dave Reisner (falconindy) - Wednesday, 28 March 2012, 14:59 GMT
This is trivial with expac and some bash:

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.
Comment by Karol Błażewicz (karol) - Wednesday, 28 March 2012, 16:09 GMT Comment by Ma Jiehong (jiehong) - Wednesday, 28 March 2012, 17:01 GMT
You're right about logs, that's what they are for…

Seems like I made a stupid request… I'll think twice times more next time!

Loading...