Is there a way to see how a program was removed? In this case I had telegram installed on ubuntu 16.04 and now its not there, running
cat /var/log/apt/history.log | grep telegram
did not return any results. Possibly I agreed to remove it when installing another package but I wanted to confirm if that was the case and if not why it happened. Im not certain but I think it was originally installed by running
sudo apt-get install telegram
Your
apt/history.log
gets rotated and archived, meaning roughly every month the logfile gets compressed and stored as/var/log/apt/history.log.X.gz
, where X is an incrementing number, 1 being the newest archive.To also search the older, compressed archives for the string
telegram
, you can usezgrep
which is capable of automatically uncompressing files before matching, if needed: