Cpt*_*rkt 2 linux filesystems source software-installation
我被要求查明何时安装了特定版本的软件。我唯一需要做的就是相关目录的修改时间。当我们安装它时,我很难破译:
/opt/pkg/totalview:
drwxr-xr-x. 3 root root 4 Jan 23 2013 8.11.0-0
/opt/pkg/totalview/8.11.0-0:
lrwxrwxrwx. 1 root root 32 Jan 23 2013 bin -> toolworks/totalview.8.11.0-0/bin
drwxrwxr-x. 5 root root 5 Dec 11 2012 toolworks
/opt/pkg/totalview/8.11.0-0/bin:
-r-xr-xr-x. 1 root root 3391 Oct 25 2012 htmlhelp.sh
lrwxrwxrwx. 1 root root 38 Dec 11 2012 memscape -> ../../memoryscape.3.3.0-0/bin/memscape
lrwxrwxrwx. 1 root root 39 Dec 11 2012 memscript -> ../../memoryscape.3.3.0-0/bin/memscript
-r-xr-xr-x. 1 root root 9161 Oct 25 2012 mrnet_commnode
lrwxrwxrwx. 1 root root 3 Dec 11 2012 sctotalview -> tv8
lrwxrwxrwx. 1 root root 6 Dec 11 2012 sctotalviewcli -> tv8cli
lrwxrwxrwx. 1 root root 3 Dec 11 2012 sctv8 -> tv8
lrwxrwxrwx. 1 root root 6 Dec 11 2012 sctv8cli -> tv8cli
lrwxrwxrwx. 1 root root 3 Dec 11 2012 totalview -> tv8
lrwxrwxrwx. 1 root root 6 Dec 11 2012 totalviewcli -> tv8cli
-r-xr-xr-x. 3 root root 21970 Oct 25 2012 tv8
-r-xr-xr-x. 3 root root 21970 Oct 25 2012 tv8cli
-r-xr-xr-x. 2 root root 19093 Oct 25 2012 tvdbootstrap
-r-xr-xr-x. 2 root root 19093 Oct 25 2012 tvdsvr
-r-xr-xr-x. 3 root root 21970 Oct 25 2012 tvscript
-r-xr-xr-x. 1 root root 6968 Oct 25 2012 visualize
/opt/pkg/totalview/8.11.0-0/toolworks:
drwxrwxr-x. 5 root root 9 Dec 11 2012 flexlm-10.8.0-3
drwxrwxr-x. 5 root root 19 Oct 25 2012 memoryscape.3.3.0-0
drwxrwxr-x. 17 root root 17 Dec 11 2012 totalview.8.11.0-0
Run Code Online (Sandbox Code Playgroud)
我看到三个主要日期:
我可以查看什么来尝试确定该软件的实际安装时间?该软件是从源代码安装的,不属于rpm或yum安装的一部分。我知道我可以stat获取更多信息,但我无法自信地确定这三个日期中的哪一个是安装时的。
编辑:结果 ls -lc
/opt/pkg/totalview:
drwxr-xr-x. 3 root root 4 Jan 23 2013 8.11.0-0
/opt/pkg/totalview/8.11.0-0:
lrwxrwxrwx. 1 root root 32 Jan 23 2013 bin -> toolworks/totalview.8.11.0-0/bin
drwxrwxr-x. 5 root root 5 Dec 11 2012 toolworks
/opt/pkg/totalview/8.11.0-0/bin:
-r-xr-xr-x. 1 root root 3391 Nov 5 03:34 htmlhelp.sh
lrwxrwxrwx. 1 root root 38 Dec 11 2012 memscape -> ../../memoryscape.3.3.0-0/bin/memscape
lrwxrwxrwx. 1 root root 39 Dec 11 2012 memscript -> ../../memoryscape.3.3.0-0/bin/memscript
-r-xr-xr-x. 1 root root 9161 Nov 5 03:34 mrnet_commnode
lrwxrwxrwx. 1 root root 3 Dec 11 2012 sctotalview -> tv8
lrwxrwxrwx. 1 root root 6 Dec 11 2012 sctotalviewcli -> tv8cli
lrwxrwxrwx. 1 root root 3 Dec 11 2012 sctv8 -> tv8
lrwxrwxrwx. 1 root root 6 Dec 11 2012 sctv8cli -> tv8cli
lrwxrwxrwx. 1 root root 3 Dec 11 2012 totalview -> tv8
lrwxrwxrwx. 1 root root 6 Dec 11 2012 totalviewcli -> tv8cli
-r-xr-xr-x. 3 root root 21970 Nov 5 03:34 tv8
-r-xr-xr-x. 3 root root 21970 Nov 5 03:34 tv8cli
-r-xr-xr-x. 2 root root 19093 Nov 5 03:34 tvdbootstrap
-r-xr-xr-x. 2 root root 19093 Nov 5 03:34 tvdsvr
-r-xr-xr-x. 3 root root 21970 Nov 5 03:34 tvscript
-r-xr-xr-x. 1 root root 6968 Nov 5 03:34 visualize
/opt/pkg/totalview/8.11.0-0/toolworks:
drwxrwxr-x. 5 root root 9 Dec 11 2012 flexlm-10.8.0-3
drwxrwxr-x. 5 root root 19 Dec 11 2012 memoryscape.3.3.0-0
drwxrwxr-x. 17 root root 17 Dec 11 2012 totalview.8.11.0-0
Run Code Online (Sandbox Code Playgroud)
ctime 是软件可能安装的最晚日期的明确指示:安装时间不晚于 2013-01-23。但是,该软件完全有可能(并且很可能在这里)之前安装过;由于权限更改或从备份恢复或复制文件,ctime 可能已更改。
该程序很可能是在 2012 年 10 月 25 日或已编译的可执行文件的 mtime 之前编译的。除非有人故意更改文件时间,否则可执行文件上的日期指示可执行文件何时被编译,或者何时被复制(没有-p)。
该软件很有可能在 2012-10-25 编译并于 2012-12-11 安装在本机上,即符号链接的时间。但是,也有可能该程序是在 2012 年 10 月 25 日编译的,然后在 2012 年 12 月 11 日安装到临时位置(包括创建符号链接),然后打包成 tarball 或其他存档格式,并解压缩在 2012-12-11 和 2013-01-23 之间的某个时间点。
| 归档时间: |
|
| 查看次数: |
125 次 |
| 最近记录: |