Rpm: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:
=== rpm -V ===
=== rpm -V ===
RPM 패키지 검증 명령어
RPM 패키지 검증 명령어
rpm -V or (--verify, or -y) options
<pre>
rpm -V or (--verify, or -y)
</pre>
 
* Package Selection Options
<pre>
pkg1 … pkgN    Verify named package(s)
-p <file>      Verify against package file <file>
-f <file>      Verify package owning <file>
-a            Verify all installed packages
-g <group>    Verify packages belonging to group <group>
</pre>
 
* Verify-specific Options
<pre>
--noscripts    Do not execute verification script
--nodeps      Do not verify dependencies
--nofiles      Do not verify file attributes
</pre>
 
* General Options
<pre>
-v                Display additional information
-vv                Display debugging information
--root <path>      Set alternate root to <path>
--rcfile <rcfile>  Set alternate rpmrc file to <rcfile>
--dbpath <path>    Use <path> to find the RPM database
</pre>


== See more ==
== See more ==

Revision as of 10:28, 18 February 2016

Overview

RPM 패키지 매니저(RPM Package Manager←Red Hat Package Manager) 사용법 소개

rpmbuild

RPM 패키지를 생성하는 명령어이다.

Change working directory

rpmbuild 사용시, 기본적으로 자신의 홈디렉토리에 rpmbuild 디렉토리가 생기고, 그 안에서 RPM 패키징 작업이 시작되는데, 다음의 명령어를 사용하면 작업 root 디렉토리를 옮길 수 있다.

$ rpmbuild --define "_topdir `pwd`" -bb SPECS/sample.spec

rpm

RPM 패키지 설치/삭제/검사 명령어

rpm -V

RPM 패키지 검증 명령어

rpm -V or (--verify, or -y)
  • Package Selection Options
pkg1 … pkgN    Verify named package(s)
-p <file>      Verify against package file <file>
-f <file>      Verify package owning <file>
-a             Verify all installed packages
-g <group>     Verify packages belonging to group <group>
  • Verify-specific Options
--noscripts    Do not execute verification script
--nodeps       Do not verify dependencies
--nofiles      Do not verify file attributes
  • General Options
-v                 Display additional information
-vv                Display debugging information
--root <path>      Set alternate root to <path>
--rcfile <rcfile>  Set alternate rpmrc file to <rcfile>
--dbpath <path>    Use <path> to find the RPM database

See more

http://www.rpm.org/max-rpm/ch-rpm-verify.html - Using RPM to Verify Installed Packages