6

Despite claims that autoremove is safe, I have, more than once, removed important packages and then finding what was removed has been a struggle. How do I find out what was removed with this command post-facto?

raphael
  • 506
  • 2
  • 5
  • 18
  • You can check the /var/log/dpkg.log. – mikewhatever Apr 30 '16 at 18:27
  • (same logs apply) – muru Apr 30 '16 at 18:33
  • If the answers are the same but questions are different... is it still a dupe? – raphael Apr 30 '16 at 18:36
  • I edit the question so that it's more generic. Now it fits the bill. – muru Apr 30 '16 at 18:51
  • 5
    What I don't understand with those questions: Why don't you read what will be removed before pressing ? – guntbert May 01 '16 at 19:55
  • @guntbert I did. Thought, hmm, that's interesting. Next day when I turn my computer on, I had no xserver anymore. By then i couldn't remember which package had been removed – raphael May 01 '16 at 19:57
  • I got bit by this 'apt autoremove' "feature" as well. Yesterday, apt suggested that a whole slew of over a dozen packages be removed, including nvidia related drivers. Trusting that they knew what they were doing, I simply did an autoremove. After which, I had to reinstall Ubuntu in order to get my system working again.. And, on reflection, this has happened to me at least twice, over the years.. – Gino Nov 30 '21 at 09:57

1 Answers1

9

Do:

grep remove /var/log/dpkg.log
guntbert
  • 13,134
Videonauth
  • 33,355
  • 17
  • 105
  • 120