1

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?

Desperatuss0ccus
  • 252
  • 1
  • 4
  • 9
vfclists
  • 1,632
  • 5
  • 22
  • 37

2 Answers2

2

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

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

andol
  • 6,938
  • 29
  • 43
2

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

uloBasEI
  • 686
  • 1
  • 4
  • 11