dpkg does not honour --root option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
Medium
|
Ian Jackson |
Bug Description
Binary package hint: dpkg
Originally reported using reportbug. Filing by proxy.
From: Ernst Kloppenburg <email address hidden>
To: Ubuntu Bug Tracking System <email address hidden>
Subject: dpkg does not honour --root option
Message-ID: <20060904204948
X-Mailer: reportbug 3.18ubuntu1
Date: Mon, 04 Sep 2006 22:49:48 +0200
X-Y-GMX-Trusted: 0
Package: dpkg
Version: 1.13.11ubuntu6
Severity: normal
Hello,
dpkg --root=/media/hda5 -l
should display the list of packages of the other debian installation
mounted at the given path
but instead it uses the package database of the installation it is
currently running in
E. Kloppenburg
-- System Information:
Debian Release: testing/unstable
APT prefers dapper-updates
APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 'dapper')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-26-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=
Versions of packages dpkg depends on:
ii coreutils 5.93-5ubuntu4 The GNU core utilities
ii libc6 2.3.6-0ubuntu20 GNU C Library: Shared libraries an
dpkg recommends no packages.
-- no debconf information
The bug seems to be that dpkg-query isn't passed --admindir. (I wonder why dpkg-query was invented and will have to read the changelog to find out ...)