릴리스된 패키지의 .dsc 파일을 데비안 방식으로 얻는 방법은 무엇입니까?

릴리스된 패키지의 .dsc 파일을 데비안 방식으로 얻는 방법은 무엇입니까?
DSCURL="$(wget -qO- "https://packages.debian.org/${SUITE}/${PKG}" \
    | grep -o 'http.*\.dsc">\[' | cut -d'"' -f1)"
[ -z "$DSCURL" ] && die 2 "no .dsc"
dget ${ALLOW_UNAUTH} -x "$DSCURL" 2> "$TEMP"

나는 jessie로부터 소스 패키지를 다운로드하여 dget -x $DSCURL. 그것은백포팅그래서 apt-get source해결책이 아닙니다. wheezy의 적절한 시스템을 방해할 것입니다. 나는 지금 데비안 웹페이지를 분석하여 그 일을 하고 있습니다. 권리를 찾지 못했어요데비안 API.

답변1

apt-get source -t jessie dpkg 일방통행이다토고:

맨페이지에서 관련 섹션을 인용하려면

       Source packages are tracked separately from binary packages via
       deb-src lines in the sources.list(5) file. This means that you will
       need to add such a line for each repository you want to get sources
       from; otherwise you will probably get either the wrong (too old/too
       new) source versions or none at all.

그리고 또한:

   -t, --target-release, --default-release
       This option controls the default input to the policy engine; it
       creates a default pin at priority 990 using the specified release
       string. This overrides the general settings in
       /etc/apt/preferences. Specifically pinned packages are not affected
       by the value of this option. In short, this option lets you have
       simple control over which distribution packages will be retrieved
       from. Some common examples might be -t '2.1*', -t unstable or -t
       sid. Configuration Item: APT::Default-Release; see also the
       apt_preferences(5) manual page.

또 다른 옵션은 다음을 사용하는 것입니다.debootstrap완전한 chroot를 만듭니다.

다음과 같은 것을 사용하는 것을 잊지 마십시오.pbuilder패키지를 안정적으로 빌드할 수 있습니다.

관련 정보