Ubuntu – How to delete History of installed packages


I need to delete the Synaptic/Software Center history(commit logs). How can I go about doing this?

Best Answer

To remove the history.

sudo rm -rf /var/log/apt/history.log /var/log/dpkg.log

I would advise to make a backup just in case! That can be done by

mkdir ~/apt-logs
sudo cp /var/log/{dpkg,apt/history}.log ~/apt-logs

You also need /var/log/dpkg.log

Related Question