이런 세상..

[LINUX] RPM 본문

> [IT]/>> Linux

[LINUX] RPM

GANWI 2016. 1. 15. 16:03

[LINUX] RPM



[1] 전체 리스트 출력

# rpm -qa

...생략...


# rpm -qa | grep vim

vim-minimal-7.2.411-1.8.el6.x86_64

vim-common-7.2.411-1.8.el6.x86_64

vim-X11-7.2.411-1.8.el6.x86_64

vim-enhanced-7.2.411-1.8.el6.x86_64 



[2] 패키지에 포함된 파일리스트 출력

# rpm -ql vim-minimal-7.2.411-1.8.el6.x86_64

/bin/ex

/bin/rvi

/bin/rview

/bin/vi

/bin/view

/etc/virc



[3] 어떤 패키지에 포함된 파일인지 확인

# rpm -qf /bin/vi

vim-minimal-7.2.411-1.8.el6.x86_64 



[4] 패키지 정보 출력

# rpm -qi vim-minimal-7.2.411-1.8.el6.x86_64

Name        : vim-minimal                  Relocations: (not relocatable)

Version     : 7.2.411                           Vendor: CentOS

Release     : 1.8.el6                       Build Date:

Install Date:                                  Build Host: c6b6.bsys.dev.centos.org

Group       : Applications/Editors          Source RPM: vim-7.2.411-1.8.el6.src.rpm

Size        : 766050                           License: Vim and GPLv2+ and BSD and LGPLv2+ and Open Publication

Signature   : RSA/SHA1, 2012년 04월 05일 (목) 오후 06시 35분 05초, Key ID 0946fca2c105b9de

Packager    : CentOS BuildSystem <http://bugs.centos.org>

URL         : http://www.vim.org/

Summary     : A minimal version of the VIM editor

Description :

VIM (VIsual editor iMproved) is an updated and improved version of the

vi editor.  Vi was the first real screen-based editor for UNIX, and is

still very popular.  VIM improves on vi by adding new features:

multiple windows, multi-level undo, block highlighting and more. The

vim-minimal package includes a minimal version of VIM, which is

installed into /bin/vi for use when only the root partition is

present. NOTE: The online help is only available when the vim-common

package is installed. 


[5] 패키지 정상 여부 확인

# rpm -qs vim-minimal-7.2.411-1.8.el6.x86_64

정상(normal)        /bin/ex

정상(normal)        /bin/rvi

정상(normal)        /bin/rview

정상(normal)        /bin/vi

정상(normal)        /bin/view

정상(normal)        /etc/virc 



[6] 패키지 무결성(변조 여부) 확인

# rpm -V vim-minimal-7.2.411-1.8.el6.x86_64



[7] 패키지 설치

# rpm -ivh vim-minimal-7.2.411-1.8.el6.x86_64



[8] 패키지 업그레이드

# rpm -Uvh vim-minimal-7.2.411-1.8.el6.x86_64



[9] 패키지 제거

# rpm -e vim-minimal-7.2.411-1.8.el6.x86_64



Comments