[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#231914: Command line option (--option DPkg::Pre-Install-Pkgs) does not work



Package: apt
Version: 0.5.21

I'm not 100% positive about the syntax, but the command line

# apt-get --option 'DPkg::Pre-Install-Pkgs="touch /tmp/foo;";' \
  --yes install hello

should create a file under /tmp/, but doesn't.  For script
mirroring parts of Debian, I like to use apt-get install,
without actually installing the packages:

# apt-get --option 'DPkg::Pre-Install-Pkgs="false;";' \
  --yes install hello

But this works only, if I set the option in /etc/apt/apt.conf,
not at the command line.  I tried DPkg::Pre-Invoke without
success.  I'm working on sarge.



Reply to: