¿Cómo obtener el archivo .dsc del paquete publicado a la manera Debian?

¿Cómo obtener el archivo .dsc del paquete publicado a la manera Debian?
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"

Estoy buscando la forma Debain de obtener un paquete fuente de jessie para descargarlo mediante dget -x $DSCURL. Es pararespaldoEntonces apt-get sourceno es una solución, interferiría con el sistema apt en caso de sibilancias. Lo estoy haciendo ahora analizando la página web de Debian. No pude encontrar el derechoAPI de Debian.

Respuesta1

apt-get source -t jessie dpkg es una manerair:

Para citar las secciones relevantes de la página de manual

       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.

Y también:

   -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.

Otra opción es utilizardebootstrapy crea un chroot completo.

No olvides usar cosas comopbuilderpara tener compilaciones confiables de su paquete.

información relacionada