Server Fault is a question and answer site for system and network administrators. 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 Debian or Ubuntu have a means of logging apt/aptitude commands?

I could also ask the same about yum commands in Redhat?

Do they have a history file?

share|improve this question
up vote 2 down vote accepted

Yes, you should look at /var/log/apt/history.log. But you might find more details in /var/log/dpkg.log.

share|improve this answer

You'll find quite a bit of apt logs under /var/log/apt/

(Not exactly about commands being run. More about actions being taken.)

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.