I need to know how to find date of install program which was pre-installed in system. For example: How to find date of pre-installed firefox
? I need to see the date it was installed on my system.
I need to know how to find date of install program which was pre-installed in system. For example: How to find date of pre-installed firefox
? I need to see the date it was installed on my system.
You can run the following:
cat /var/log/apt/history.log | grep -B 2 firefox
And it'll show you the dates of installations/upgrades/removals. Note that if your log is very large, it will be rotated and archived in a file like
/var/log/apt/history.log.1.gz
Unfortunately this doesn't show if it was installed during system installation. This information is much harder to get. You can view the modified date of the
firefox
binary, but that may have been modified afterwards, by an upgrade for example.It's safe to assume that if it's not in the
history.log
files, that it was installed with the OS. You can check a few things here.First,
This will show you when the filesystem was created, but, if you reinstalled Ubuntu at some point and left the filesytem intact, it will still show the original date. So this is not really good.
Second,
will show oldest file on the bottom. If the package is not in the very first
cat
command at the top of this answer, then it's safe to assume it was installed with the system, on the last date found using thels
command above. Having the FileSystem date and the last date on the bottom of thels
command match, will confirm the date even more.I think I'd try something based on grepping the (possibly compressed) dpkg log files e.g.
If you want to see install/upgrade history you can do