From /var/log/apt/history.log
it is possible to retrieve a list of installed and removed packages within time x
based on timestamps, but editing the file is rather annoying, so I'm looking for a (set of) command(s) to get the effective list of packages which have been installed after timestamp x_0
(= packages which have been installed after timestamp x_0
minus packages which have been removed after timestamp x_0
) in form of a list of package names.
software-center
only displays changes chronologically and synaptic
doesn't have a column which represents installation time. dpkg-query
looks promising, but I'd appreciate some help from someone who can figure this out in minutes rather than days (the latter applies to myself).
I'm running Ubuntu 14.10.
Best Answer
It seems that
dpkg
doesn't show explicitly any information about installation dates of packages.So, for a single run I would use something like the following one-liner:
Start date (x_0) has been hard-coded in the command (
"2015-04-26"
).For time to time usage more suitable would be a stand-alone script, like this
installed_packages.pl
:Usage:
or
For frequent interactive use I'd add validation of script arguments (format of start date), implement
-h
switch to display short help, and possibly convert start date to named switch (--start
).Good luck!