- rpm 설치일시 확인
- rpm 설치일 확인
1 패키지명 검색
- 명령어
Bash
Copy
rpm -qa --qf '%{INSTALLTIME:date} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | grep 패키지명
- 실행예시
bat
Copy
[root@jmnote ~]# rpm -qa --qf '%{INSTALLTIME:date} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | grep httpd
Tue 10 Jul 2012 10:12:10 AM KST httpd-tools-2.2.15-15.el6.centos.x86_64
Tue 10 Jul 2012 10:12:12 AM KST httpd-2.2.15-15.el6.centos.x86_64
2 설치일순 목록
- 명령어
Bash
Copy
rpm -qa -last
- 실행예시
bat
Copy
[root@jmnote ~]# rpm -qa -last
nano-2.0.9-7.el6 Tue 10 Jul 2012 10:13:42 AM KST
httpd-2.2.15-15.el6.centos Tue 10 Jul 2012 10:12:12 AM KST
mailcap-2.1.31-2.el6 Tue 10 Jul 2012 10:12:11 AM KST
... (생략)
basesystem-10.0-4.el6 Mon 09 Jul 2012 03:41:04 PM KST
setup-2.8.14-10.el6 Mon 09 Jul 2012 03:41:03 PM KST
libgcc-4.4.4-13.el6 Mon 09 Jul 2012 03:41:03 PM KST
3 설치일 역순 목록
bat
Copy
[root@jmnote ~]# rpm -qa --qf '%{INSTALLTIME:date} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -n
Mon 09 Jul 2012 03:41:03 PM KST libgcc-4.4.4-13.el6.x86_64
Mon 09 Jul 2012 03:41:03 PM KST setup-2.8.14-10.el6.noarch
Mon 09 Jul 2012 03:41:04 PM KST basesystem-10.0-4.el6.noarch
... (생략)
Tue 10 Jul 2012 10:12:11 AM KST mailcap-2.1.31-2.el6.noarch
Tue 10 Jul 2012 10:12:12 AM KST httpd-2.2.15-15.el6.centos.x86_64
Tue 10 Jul 2012 10:13:42 AM KST nano-2.0.9-7.el6.x86_64
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.