Package: debian-goodies
Version: 0.23
Severity: wishlist
File: /usr/bin/debget
Do provide debget the ability to fetch debs for architectures other
then the one it is curently running on. Something like:
debget -a arch pkg
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.5-4.pentium1.1
Locale: LANG=C, LC_CTYPE=C
Versions of packages debian-goodies depends on:
ii curl 7.11.2-1 Get a file from an HTTP, HTTPS, FT
ii grep-dctrl 2.1.4 Grep Debian package information
ii lsof 4.71-1 List open files.
ii python 2.3.4-1 An interactive high-level object-o
-- no debconf information
Acknowledgement sent
to Axel Beckert <[email protected]>:
Extra info received and forwarded to list. Copy sent to Javier Fernandez-Sanguino Pen~a <[email protected]>.
(Wed, 26 May 2010 17:18:07 GMT) (full text, mbox, link).
> Do provide debget the ability to fetch debs for architectures other
> then the one it is curently running on. Something like:
>
> debget -a arch pkg
Difficult.
We could pass -o Architecture=arch to all apt-get calls, but we would
need to download all indices for the given architecture first. apt-get
can do this only as root as far as I can see.
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
Acknowledgement sent
to Matthew Gabeler-Lee <[email protected]>:
Extra info received and forwarded to list. Copy sent to Javier Fernandez-Sanguino Pen~a <[email protected]>.
(Mon, 03 Dec 2012 16:27:03 GMT) (full text, mbox, link).
Package: debian-goodies
Version: 0.61
Followup-For: Bug #259864
I was trying to use the "other" apt syntax for specifying an architecture
(apt-get install packagename:arch), and it looks like debget gets most of
the way there, it just needs some slightly smarter regex fu.
$ debget libtiff4:amd64
(libtiff4:amd64 -> 3.9.6-9)
< exits with error code 1, looks like it's because it runs with -e >
$ ( set -x ; . /usr/bin/debget libtiff4:amd64 )
+ . /usr/bin/debget libtiff4:amd64
++ LC_ALL=C
++ '[' 1 -eq 0 ']'
++ case $1 in
++ set +e
++ apt-get -q2 --print-uris --reinstall install dpkg
++ '[' 0 -ne 0 ']'
++ ls --color=auto /var/lib/apt/lists/
++ grep Release
++ set -e
++ for pkgspec in '$*'
++ set +e
++ apt-get -q2 --print-uris --reinstall install libtiff4:amd64
++ '[' 0 -ne 0 ']'
++ set -e
++ apt-cache show libtiff4:amd64
++ grep '^Ver'
++ read version
+++ echo Version: 3.9.6-9
+++ sed -ne '$s/^.*: \(.*\).*$/\1/p'
++ version=3.9.6-9
++ echo '(libtiff4:amd64 -> 3.9.6-9)'
(libtiff4:amd64 -> 3.9.6-9)
++ read version
+++ apt-get -q2 --print-uris --reinstall install libtiff4:amd64
+++ grep -F /libtiff4:amd64_
++ aptdata=
NB: apt-get -q2 --print-uris --reinstall install libtiff4:amd64 prints the
correct URI, sort of:
$ apt-get -q2 --print-uris --reinstall install libtiff4:amd64
'http://ftp.us.debian.org/debian/pool/main/t/tiff3/libtiff4_3.9.6-9_amd64.deb' libtiff4_3.9.6-9_amd64.deb 201908 MD5Sum:8665f1954dce043eae89908c3055e8a1
'http://ftp.us.debian.org/debian/pool/main/t/tiff3/libtiff4_3.9.6-9_i386.deb' libtiff4_3.9.6-9_i386.deb 200790 MD5Sum:b77f99baa7a74a7f570a3ca1c48d8005
NB2: My system is amd64 natively, I've run dpkg --add-architecture i386 and
such to get multiarch going, as you can see from the info below.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.6.8 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages debian-goodies depends on:
ii curl 7.26.0-1
ii dctrl-tools [grep-dctrl] 2.22.2
ii dialog 1.1-20120215-2
ii perl 5.14.2-15
ii python 2.7.3~rc2-1
ii whiptail 0.52.14-10
Versions of packages debian-goodies recommends:
ii lsof 4.86+dfsg-1
Versions of packages debian-goodies suggests:
ii popularity-contest 1.56
ii xdg-utils 1.1.0~rc1+git20111210-6
ii zenity 3.4.0-2
-- no debconf information
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.