이것을 입력하면 dpkg -l | grep xserver-xorg
설치된 패키지와 해당 버전 목록이 표시됩니다.
ii xserver-xorg 1:7.7+3~deb7u1
ii xserver-xorg-core 2:1.12.4-6
ii xserver-xorg-input-evdev 1:2.7.0-1+b1
ii xserver-xorg-input-kbd 1:1.6.1-1+b1
ii xserver-xorg-input-mouse 1:1.7.2-3
ii xserver-xorg-video-radeon 1:6.14.4-8
2
콜론 앞의 숫자, 즉 콜론 안의 숫자 가 무엇을 의미하는지 알고 싶습니다.2:1.12.4-6
답변1
이것데비안의 버전 번호다음과 같은 형태를 가지고 있습니다
[epoch:]upstream_version[-debian_revision]
어디
epoch
이전 버전의 패키지에 대한 버전 번호의 오류를 허용하기 위해 포함된 (일반적으로 작은) 부호 없는 정수입니다. 생략하면epoch
0으로 간주됩니다.upstream_version
일반적으로 .deb 파일이 생성된 원본 소스 패키지의 버전 번호입니다. 일반적으로 업스트림 소스에서 사용되는 것과 동일한 형식으로 유지됩니다.debian_revision
업스트림 버전을 기반으로 Debian 패키지의 버전을 지정합니다. 이는 선택 사항이며 소프트웨어가 Debian 패키지용으로 특별히 작성된 경우 생략됩니다.
답변2
2
예연대.
보다 포괄적으로,man deb-version
:
[epoch:]upstream-version[-debian-revision]
epoch
This is a single (generally small) unsigned integer. It may be omitted, in which
case zero is assumed. If it is omitted then the upstream-version may not contain
any colons.
It is provided to allow mistakes in the version numbers of older versions of a
package, and also a package's previous version numbering schemes, to be left
behind.
upstream-version
This is the main part of the version number. It is usually the version number of
the original ("upstream") package from which the .deb file has been made, if this
is applicable. Usually this will be in the same format as that specified by the
upstream author(s); however, it may need to be reformatted to fit into the package
management system's format and comparison scheme.
The comparison behavior of the package management system with respect to the
upstream-version is described below. The upstream-version portion of the version
number is mandatory.
The upstream-version may contain only alphanumerics ("A-Za-z0-9") and the
characters . + - : ~ (full stop, plus, hyphen, colon, tilde) and should start with
a digit. If there is no debian-revision then hyphens are not allowed; if there is
no epoch then colons are not allowed.
debian-revision
This part of the version number specifies the version of the Debian package based
on the upstream version. It may contain only alphanumerics and the characters + .
~ (plus, full stop, tilde) and is compared in the same way as the upstream-version
is.
It is optional; if it isn't present then the upstream-version may not contain a
hyphen. This format represents the case where a piece of software was written
specifically to be turned into a Debian package, and so there is only one
"debianisation" of it and therefore no revision indication is required.
It is conventional to restart the debian-revision at '1' each time time the
upstream-version is increased.
Dpkg will break the version number apart at the last hyphen in the string (if there
is one) to determine the upstream-version and debian-revision. The absence of a
debian-revision compares earlier than the presence of one (but note that the
debian-revision is the least significant part of the version number).