Package

RPM 패키지 버전 명명 규칙

linuxlover 2023. 3. 5. 15:27

RPM 패키지 버전 명명 규칙

 

rpm 은 Red Hat Package Manager 또는 RPM Package Manager 의 약자로 기존 슬랙웨어의 tar.gz 방식의 패키지 관리를 대체하기 위해 개발되었다. rpm 방식으로 패키징된 소프트웨어는 .rpm 이라는 확장자를 갖게 되며 파일명의 명명규칙은 아래 예시와 같다.

 

[예시]

[패키지명]-[벤더의 릴리즈버전].[package rebuild 버전].[build target].[아키텍처]

# rpm -q firefox

firefox-24.7.0-1.el7_0.x86_64

 

firefox : package 이름

 

 

24.7 : 소프트웨어 공급자가 배포한 릴리즈 버전

 

 

0-1 : Red Hat에서 package rebuild 되어질  마다 지정( 여기선 1)

Ex) 0-600 이면 600

 

 

el7_0 : firefox Red hat 7.0 버전용으로 빌드 되어졌다.

(el6일 경우 Red hat 6.0 버전용으로 빌드 되어졌다.)

 

 

x86_64 : 64bit으로 컴파일 되어졌다.

(64비트일 경우 x86_64로 표시가 되며 32비트일 경우 i686으로 표시가 된다.

패키지가 python 이나 perl 같은 스크립트일 경우 32비트, 64비트 상관없이 동작하므로 x86_64 i686 대신 noarch 라고 표시된다.)

 

 

From this, you can tell that the basename of the package is firefox. The release number is 24.7 (assigned by the upstream producer of Firefox, the Mozilla Project). The version number (assigned by the packager, Red Hat, each time the package is rebuilt at the same release number) is 1. The firefox package was built for Red Hat Enterprise Linux 7.0 (el7_0) and is compiled for the x86 64-bit architecture (x86_64).