Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

using apt command line option to clear a list

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
jayen
Posts: 15
Joined: 2010-03-18 08:01

using apt command line option to clear a list

#1 Post by jayen »

I can see in the apt.conf manpage that #clear is used to clear a list, but I can't figure out the syntax to use this from the command line. I've tried:

Code: Select all

$ apt-config -o 'DPkg::Post-Invoke=#clear' dump
DPkg::Post-Invoke "#clear";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi ";

Code: Select all

$ apt-config -o 'DPkg::Post-Invoke#clear' dump
E: Option DPkg::Post-Invoke#clear: Configuration item specification must have an =<val>.

Code: Select all

$ apt-config -o 'DPkg::Post-Invoke::=#clear' dump
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi ";
DPkg::Post-Invoke:: "#clear";

Code: Select all

$ apt-config -o 'DPkg { Post-Invoke { #clear } }' dump
E: Option DPkg { Post-Invoke { #clear } }: Configuration item specification must have an =<val>.
Any ideas?
Thanks.

Post Reply