apt-config.8.yo 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. mailto(apt@packages.debian.org)
  2. manpage(apt-config)(8)(14 Feb 1999)(apt)()
  3. manpagename(apt-config)(APT Configuration Query program)
  4. manpagesynopsis()
  5. apt-config command
  6. manpagedescription()
  7. bf(apt-config) is an internal program used by various portions of the APT
  8. suite to provide consistent configurability. It accesses the main configuarion
  9. file /etc/apt/apt.conf in a manner that is easy to use by scripted
  10. applications.
  11. em(command) is one of:
  12. itemize(
  13. it() shell
  14. it() dump
  15. )
  16. Unless the -h, or --help option is given one of the above commands
  17. must be present.
  18. startdit()
  19. dit(bf(shell))
  20. bf(shell) is used to access the configuration information from a shell script.
  21. It is given pairs of arguments, the first being a shell variable and the
  22. second the configuration value to query. As output it lists a series of shell
  23. assignments commands for each present value. In a shell script it should be
  24. used like:
  25. verb(
  26. OPTS="-f"
  27. RES=`apt-config shell OPTS MyApp::Options`
  28. eval $RES
  29. )
  30. This will set the shell environment variable $OPTS to the value of
  31. MyApp::Options with a default of -f.
  32. If the configuration item to retrieve is prefixed with a / then it will
  33. be retrieved using filename mode which prepends base paths.
  34. dit(bf(dump))
  35. Just show the contents of the configuration space.
  36. enddit()
  37. manpageoptions()
  38. All command line options may be set using the configuration file, the
  39. descriptions indicate the configuration option to set. For boolean
  40. options you can override the config file by using something like bf(-f-),
  41. bf(--no-f), bf(-f=no) or several other variations.
  42. startdit()
  43. dit(bf(-h, --help))
  44. Show a short usage summary.
  45. dit(bf(-v, --version))
  46. Show the program verison.
  47. dit(bf(-c, --config-file))
  48. Configuration File; Specify a configuration file to use. bf(apt-get) will
  49. read the default configuration file and then this configuration file. See
  50. bf(apt.conf(5)) for syntax information.
  51. dit(bf(-o, --option))
  52. Set a Configuration Option; This will set an arbitary configuration option.
  53. The syntax is
  54. verb(-o Foo::Bar=bar)
  55. enddit()
  56. manpageseealso()
  57. apt.conf(5)
  58. manpagediagnostics()
  59. apt-config returns zero on normal operation, decimal 100 on error.
  60. manpagebugs()
  61. See http://bugs.debian.org/apt. If you wish to report a
  62. bug in bf(apt-config), please see bf(/usr/doc/debian/bug-reporting.txt)
  63. or the bf(bug(1)) command.
  64. manpageauthor()
  65. apt-get was written by the APT team <apt@packages.debian.org>.