[pv] rpm으로 파이프 뷰 프로그램 설치 및 실행
pv 라는 파이프 뷰 프로그램이 있다. 얼마나 진행되는지 보여준다.
rpm 커맨드는 좀 더 상세하게 rpm 패키지가 어떻게 설치되었는지 정보를 확인할 수 있다.
$ pv a.out > /dev/null
8.46kiB 0:00:00 [10.8MiB/s] [========================================================================================================>] 100%
pv를 rpm으로 설치할 수 있다.
설치
$ curl -O http://dl.fedoraproject.org/pub/epel/7/x86_64/p/pv-1.4.6-1.el7.x86_64.rpm
$ rpm -Uvh ~/pv-1.4.6-1.el7.x86_64.rpm
설치 확인
$ rpm -qa | grep "pv-"
pv-1.4.6-1.el7.x86_64
테스트
$ dd if=/dev/urandom | pv | dd of=/dev/null
-qi는 정보 확인
$ rpm -qi pv
Name : pv
Version : 1.4.6
Release : 1.el7
Architecture: x86_64
Install Date:
Group : Development/Tools
Size : 95481
License : Artistic 2.0
Signature : RSA/SHA256, 2014년 02월 05일 (수) 오후 01시 54분 31초, Key ID 6a2faea2352c64e5
Source RPM : pv-1.4.6-1.el7.src.rpm
Build Date :
Build Host : buildvm-14.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager : Fedora Project
Vendor : Fedora Project
URL : http://www.ivarch.com/programs/pv.shtml
Summary : A tool for monitoring the progress of data through a pipeline
Description :
PV ("Pipe Viewer") is a tool for monitoring the progress of data through a
pipeline. It can be inserted into any normal pipeline between two processes
to give a visual indication of how quickly data is passing through, how long
it has taken, how near to completion it is, and an estimate of how long it
will be until completion.
설치된 디렉토리/파일 목록 확인
$ rpm -ql pv
/usr/bin/pv
/usr/share/doc/pv-1.4.6
/usr/share/doc/pv-1.4.6/COPYING
/usr/share/doc/pv-1.4.6/NEWS
/usr/share/doc/pv-1.4.6/README
/usr/share/doc/pv-1.4.6/TODO
/usr/share/locale/de/LC_MESSAGES/pv.mo
/usr/share/locale/fr/LC_MESSAGES/pv.mo
/usr/share/locale/pl/LC_MESSAGES/pv.mo
/usr/share/locale/pt/LC_MESSAGES/pv.mo
/usr/share/man/man1/pv.1.gz
설치된 디렉토리 확인
$ rpm -qd pv
/usr/share/doc/pv-1.4.6/COPYING
/usr/share/doc/pv-1.4.6/NEWS
/usr/share/doc/pv-1.4.6/README
/usr/share/doc/pv-1.4.6/TODO
/usr/share/man/man1/pv.1.gz