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,562
  • 5
  • 20
  • 36

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,848
  • 28
  • 43
2

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

uloBasEI
  • 676
  • 1
  • 4
  • 11