"Rpm 설치일 확인"의 두 판 사이의 차이

(새 문서: {{소문자}} ;rpm 설치일시 확인 ;rpm 설치일 확인 ==설치일순 목록== ;명령어 <source lang='bash'> rpm -qa -last </source> ;실행예시 <source lang='dos'> [root@...)
 
36번째 줄: 36번째 줄:
;명령어
;명령어
<source lang='bash'>
<source lang='bash'>
rpm -qa --qf '(%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | grep 패키지명
rpm -qa --qf '%{INSTALLTIME:date} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | grep 패키지명
</source>
</source>


42번째 줄: 42번째 줄:
<source lang='bash'>
<source lang='bash'>
[root@jmnote ~]# rpm -qa --qf '(%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | grep httpd
[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: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
Tue 10 Jul 2012 10:12:12 AM KST httpd-2.2.15-15.el6.centos.x86_64
</source>
</source>

2012년 7월 10일 (화) 14:08 판

rpm 설치일시 확인
rpm 설치일 확인

1 설치일순 목록

명령어
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

2 설치일 역순 목록

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

3 패키지명 검색

명령어
Bash
Copy
rpm -qa --qf '%{INSTALLTIME:date} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | grep 패키지명
실행예시
Bash
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