[Aptitude-devel] Question regarding aptitude internally calling dpkg.

Mark Hong mhong at sunrisetelecom.com
Thu Apr 15 22:52:27 UTC 2010

Here are some more information.
root at Linux: aptitude --help
aptitude 0.4.9
Usage: aptitude [-S fname] [-u|-i]
       aptitude [options] <action> 

root at Linux:~# dpkg --version
Debian `dpkg' package management program version (arm).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.

I also tried:
root at Linux: aptitude -o \
Dir::State::status=/media/removable/lib/dpkg/status -o \
Dir::State=/media/removable/var/lib/apt/ install "package"

The status and info is still in /var/lib/dpkg/status, and info is
in /var/lib/apt/info/ directories.  I am not quite sure if this is
aptitude problem or dpkg problem.  Appreciate any suggestions.


On Thu, 2010-04-15 at 13:18 -0700, Mark Hong wrote:
> Recently I encountered a problem using aptitude to install software on
> removable storage. So I want to keep all status and package info to the
> removable so I can just move this usb memory to different Linux machine.
> I can change the apt.conf regarding the dpkg --admindir
> to /media/removable, but during the apitude install, it uses dpkg
> internally, and use the default dpkg admindir, so the status and info
> are staying in /var/lig/dpkg, anyone can help me?
> TIA.
> Mark

More information about the Aptitude-devel mailing list