Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
1  
Why would you need to do this? Install some porn apps and need to hide them? –  Brian Graham Feb 29 '12 at 21:38
    
But seriously, it is worth being clear why you need to delete it. Installed and removed applications can leave other traces besides the apt/dpkg logs. –  poolie Mar 1 '12 at 0:21
3  
I am setting up a laptop for someone extremely nosy. I'd rather they not look at the history and try uninstalling software I installed and trying to reinstall software that I uninstalled. If curiosity killed the cat, perhaps putting the next cat in a cage would keep it alive longer. –  MisterCrazy8 Mar 1 '12 at 22:24
add comment

1 Answer

up vote 8 down vote accepted

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

share|improve this answer
2  
You also need /var/log/dpkg.log. –  poolie Feb 29 '12 at 23:15
    
Thanks for the backup @poolie –  Ringtail Mar 1 '12 at 0:13
    
I think there shouldn't be a ~ in front of the var folder's path. –  papukaija Jul 5 '13 at 17:56
add comment

Your Answer

 
discard

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.