0

How can I find out the date (and time if possible) of installation of any package on Linux Operating system.

For Ubuntu and using apt-get

1
  • More information required. Which Linux distro and package system are we talking about?
    – Jarmund
    Apr 16, 2015 at 20:00

1 Answer 1

1

Try: "dpkg -L [your package name] | xargs stat"

dpkg -L will list the files installed on your system from the package name that you enter(don't include the brackets). The "xargs stat" side will take the input from the piped command and show you the status of the files found with the dpkg -L command.

This will give you a lot of information about the files which are related to the package.

If you know where the file is you can just use "stat /path/to/file/.

This is probably as close as you are going to get to finding when the package was installed as apparently posix standards do not include file birth dates. How to find creation date of file?

This is an example of the results that you will get. I used the command "dpkg -L python-software-properties | xargs stat" to create these results.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .