Ubuntu's Software Center shows whole history of all packages that were installed/upgraded/removed. Just click "History" at the bottom of the list at left.
grep \<none\> limits results to new installations.
You could, for example, use grep to limit the search to a three-month period by adding grep 2016-0[567] to the first pipeline; it's very flexible.
There is a package called wajig Check it out for the command line, it is the first thing I install now. Like aptitude, except that it works like you'd expect a command dispatcher to work. So really, it's not like aptitude. Commands below are just a small subset.
wajig help
Common JIG commands:
update Update the list of downloadable packages
new List packages that became available since last update
newupgrades List packages newly available for upgrading
install Install (or upgrade) one or more packages or .deb files
remove Remove one or more packages (see also purge)
toupgrade List packages with newer versions available for upgrading
upgrade Upgrade all of the installed packages or just those listed
listfiles List the files that are supplied by the named package
listnames List all known packages or those containing supplied string
whatis For each package named obtain a one line description
whichpkg Find the package that supplies the given command or file
Run 'wajig -v commands' for a complete list of commands.
The problem with viewing the installation history in Software Centre or Synaptic is that it's hard to copy/paste the contents into an email (e.g. when talking with tech support!). The alternative is to view the contents of the log files in /var/log/apt as root.
Command to list recently installed packages that were installed via any method (
apt-get
, Software Center et al.):Example output:
You could run this command to list only the recently installed package names,
Command to list history of
apt-get
(NOTE: this doesn't list dependencies installed, it simply lists previousapt-get
commands that were run):Example output:
To see also older packages sorted by time of installation:
And for packages installed very long time ago:
Ubuntu's Software Center shows whole history of all packages that were installed/upgraded/removed. Just click "History" at the bottom of the list at left.
The following trick answers Aleksandr Dubinsky's request to limit this to manually-installed packages:
comm -12
lists lines common to two sorted files.<(command)
expands to the name of a file containing the output ofcommand
.apt-mark showmanual
lists manually installed packages; ie. those that should never be auto-removed.grep " install " /var/log/dpkg.log
is taken from the accepted answer.An alternative, showing more information, in chronological order, and accessing all available logs, is:
grep \<none\>
limits results to new installations. You could, for example, use grep to limit the search to a three-month period by addinggrep 2016-0[567]
to the first pipeline; it's very flexible.All on one line; for command use
Select and print only the recently installed package-names, all on one line.
To do so, change the most-voted answer to:
This results in a single line of package names. Such a line can easily be added to a
sudo apt-get purge
command.Example output
Listing packages one below another
By popular demand, here is slightly adapted version for listing the packages one below another:
There is a package called wajig Check it out for the command line, it is the first thing I install now. Like aptitude, except that it works like you'd expect a command dispatcher to work. So really, it's not like aptitude. Commands below are just a small subset.
Here is some shell to list dpkg installed files. (which should include all apt/aptitude/software center/synaptic installed packages)
This does not include install time/date info. But may be useful in determining any differences in packages installed from os install to current.
In addition to DoR's answer, for those who prefer a GUI, there is a File -> History menu item in Synaptic.
The problem with viewing the installation history in Software Centre or Synaptic is that it's hard to copy/paste the contents into an email (e.g. when talking with tech support!). The alternative is to view the contents of the log files in
/var/log/apt
as root.