File: apt-file.conf

package info (click to toggle)
apt-file 3.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 636 kB
  • sloc: perl: 907; sh: 93; makefile: 40
file content (37 lines) | stat: -rw-r--r-- 1,381 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 Install as /etc/apt/apt-file.conf to make apt-file parse this file.
 It will be parsed *after* all other apt config files.

 Combine with disable-apt-file.conf to make apt-file only update the
  Contents files on "apt-file update".
 
  Alternative uses:
  - If you change the Dir::State below, you can use this config file
    to emulate a "user cache" (similar to the old "apt-file --cache").
    - You will have to create the "cache" directory yourself.
 
  CAVEATS:
  * Note this operates on a black list to avoid re-fetching other
    resources.  See inline shell snippet to see if it is up to
    date.
  * This will *not* overrule explicitly enabled indices or sources
    lists that explicitly enables a given index target.
*/

Acquire::IndexTargets {
	deb::Contents-deb::DefaultEnabled "true";
	deb-src::Contents-dsc::DefaultEnabled "true";

        deb::Packages::DefaultEnabled "false";
        deb::Translations::DefaultEnabled "false";
        deb-src::Sources::DefaultEnabled "false";
        // Add other index targets here as necessary, use:
        // apt-config dump | perl -ne \
        //   'print "$1\n" if m/^Acquire::IndexTargets::(deb(?:-src)?::[^:\s]+)\s/;'
        // to list known names.
};

Dir::State "var/lib/apt-file/";
// Otherwise, APT will complain about APT::Default-Release not
// being available in the sources.
#clear APT::Default-Release;