Package list debian-goodies / b8a1149
debmany: use apt-helper for package downloads apt-helper is better that curl, because: * APT it's more likely to be already installed (popcon 100%) than curl (popcon 55%). * curl doesn't support all the URL schemes APT does. * curl doesn't honor APT proxy settings. Closes: #969025 Jakub Wilk authored 10 months ago Axel Beckert committed 6 months ago
3 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
33 # description: select manpages+docs of any [not] installed Debian package
44 # comment: debmany is based on the work of debman and debget
55 # gui uses: whiptail (preferred), dialog or zenity as well
6 # other uses: curl, $PAGER or sensible-pager (can be overwritten: -o)
6 # other uses: apt, $PAGER or sensible-pager (can be overwritten: -o)
77 # optional: -k -x: kfmclient exec (konqueror), xdg-open (xdg-utils)
88 # This is free software. You may redistribute copies of it under the terms of
99 # the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
349349 fi
350350 fi
351351 # download the package
352 debug "Mode3: Start download using curl" # comment
353 curl --location "$url" >"$file" || error "Failed to download '$url' to '$file'."
354 status=repos-curl
352 debug "Mode3: Start download using APT" # comment
353 /usr/lib/apt/apt-helper download-file "$url" "$file" || error "Failed to download '$url' to '$file'."
354 status=repos-download
355355 fi
356356 fi
357357 cd "$temp"
4242 .PP
4343 The manpages are temporarily extracted to a temporary directory under /tmp (or /var/tmp, if /tmp is not a directory). You can override the path if you set and export the environment variable TMPDIR or set it as a temporary variable.
4444 .PP
45 You need to have the Debian package "whiptail" (preferred) or "dialog" as well as "curl" installed.
45 You need to have the Debian package "whiptail" (preferred) or "dialog" as well as "apt" installed.
4646 .SH "EXAMPLES"
4747 .TP
4848 debmany coreutils
4242 .PP
4343 Die Manpages werden temporär nach /tmp oder /var/tmp extrahiert. Durch das Setzen und Exportieren der Umgebungsvariable TMPDIR bzw. das Setzen als temporären Variable kann der Speicherort überschrieben werden.
4444 .PP
45 Das Debian Paket "whiptail" (bevorzugt) oder "dialog" sowie "curl" muss installiert sein.
45 Das Debian Paket "whiptail" (bevorzugt) oder "dialog" sowie "apt" muss installiert sein.
4646 .SH "BEISPIELE"
4747 .TP
4848 debmany coreutils