I have old Software Center history and I would like to clear it all.

I tried

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

but it did not work.

  • I really need to scare some users from using rm -rf... but anyways, do you really know where the software center logs? – Braiam Sep 14 '13 at 0:08
  • 1
    Close voters: why is this unclear? He wants to clear the Software Center History (whatever is in the "History" tab). – Alaa Ali Sep 14 '13 at 7:59
  • Possible duplicate of askubuntu.com/q/214863 – ændrük Sep 14 '13 at 13:21

You were close—Software Center just keeps a cache of the APT history in your home folder. If you need to wipe it:

  1. Delete the APT history log, /var/log/apt/history.log*. (Don't forget the rotated log files.)

  2. Delete the Software Center's pickled cache, ~/.cache/software-center/apthistory.p, from every user's home folder.

I'm not sure why your question was down-voted.

  • Presumably /var/log/dpkg.log is actually used as well. – Eliah Kagan Sep 14 '13 at 5:14
  • Doesn't seem to be used in USC's history, from my brief test and from skimming the code linked above. You'd want to delete it if you were trying to hide having installed something but that's such a tricky topic I don't feel comfortable providing advice here; I'd likely miss something subtle and I don't want to provide a false sense of security. – ændrük Sep 14 '13 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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