Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does the Ubuntu Software Center keep a log of everything it has installed? So I could just parse this log to convert it into a script full of 'sudo apt-get instals' or something. And then the next time I install Ubuntu I could just this script to re-install everything.

share|improve this question
up vote 4 down vote accepted

Yes, It maintains a log in /var/log/apt/history.log. Older histories gets compressed as .gz files. It contains installation, upgrade and removal logs.
For keeping existing software backups you can use dpkg-repack to make .deb files out of installed files. Here.

share|improve this answer

Yes it does. You're looking for the file:


I have no idea how to parse it or how to understand the format it's in, but that's not the question you asked.

share|improve this answer

If this is for personal use, there is a way to sync programs built in to the software center. If you just click File -> "Sync Between Computers". You just have to create an Ubuntu Software Center account. Here is a how-to with more information which may be relevant,

share|improve this answer

You can also get a list of all manually installed packages which are not a dependency of another package by running this command:

$ deborphan -a | awk '{print $2}' | sort > packages.list

For reinstalling these packages, use:

$ sudo apt-get install $(cat packages.list | tr '\n' ' ')
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.