X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/d59cbe7f4a3712dbcfda35b843dbafecb38fff18..0410b3d54c2b59d761073207645f1a7fd2df8f5f:/doc/apt-cache.8.yo diff --git a/doc/apt-cache.8.yo b/doc/apt-cache.8.yo index ced1dc6c1..cf0a11691 100644 --- a/doc/apt-cache.8.yo +++ b/doc/apt-cache.8.yo @@ -15,11 +15,16 @@ itemize( it() add file1 [file2] [...] it() gencaches it() showpkg package1 [package2] [...] - it() stats + it() stats it() dump it() dumpavail it() unmet it() check + it() search + it() show + it() showpkg + it() depends + it() pkgnames ) Unless the -h, or --help option is given one of the above commands @@ -135,6 +140,32 @@ dit(bf(check)) bf(check) is a random function for testing certain aspects of the cache. Do not use it. +dit(bf(showpkg)) +bf(showpkg) displays a listing of the given package cache structure and some +related information about it. The list is ment primarily for debugging. + +dit(bf(show)) +bf(show) performs the same function as dpkg --print-avail, it displays +the package records for the named packages. + +dit(bf(search)) +bf(search) performs a full text search on all available package files for +the pattern given. It searchs the package names and the descriptions for +an occurance of the string and prints out the package name and the short +description. If --full is given then output identical to bf(show) is produced +for each matched package and if --names-only is given then the long +description is not searched, only the package name is. + +dit(bf(depends)) +bf(depends) shows a listing of each dependency a package has and all +the possible other packages that can fullfill that dependency. + +dit(bf(pkgnames)) +This command prints the name of each package in the system. The optional +argument is a prefix match to filter the name list. The output is suitable +for use in a shell tab complete function and the output is generated extremly +quickly. This command is best used with the bf(--no-generate) option. + enddit() manpageoptions() @@ -147,28 +178,50 @@ startdit() dit(bf(-h, --help)) Show a short usage summary. +dit(bf(-v, --version)) +Show the program verison. + dit(bf(-p --pkg-cache)) Select the file to store the package cache. The package cache is the primary cache used by all operations. -See bf(Dir::Cache::pkgcache). +Configuration Item: bf(Dir::Cache::pkgcache). dit(bf(-s --src-cache)) Select the file to store the source cache. The source is used only by bf(gencaches) and it stores a parsed version of the package information from remote sources. When building the package cache the source cache is used to advoid reparsing all of the package files. -See bf(Dir::Cache::srcpkgcache). +Configuration Item: bf(Dir::Cache::srcpkgcache). dit(bf(-q, --quiet)) Quiet; produces output suitable for logging, omitting progress indicators. More qs will produce more quite up to a maximum of 2. You can also use bf(-q=#) to set the quiet level, overriding the configuration file. -See bf(quiet). +Configuration Item: bf(quiet). dit(bf(-i --important)) Print only important deps; for use with unmet causes only em(Depends) and em(Pre-Depends) relations to be printed. -See bf(APT::Cache::Important). +Configuration Item: bf(APT::Cache::Important). + +dit(bf(-f --full)) +Print full package records when searching. Configuration Item: bf(APT::Cache::ShowFull). + +dit(bf(-a --all-versions)) +Print full records for all available versions, this is only applicable to the +show command. Configuration Item: bf(APT::Cache::AllVersions) + +dit(bf(-g --no-generate)) +Do not perform automatic package cache regeneration, use the cache as it is. +Configuration Item: bf(APT::Cache::NoGenerate). + +dit(bf(--names-only)) +Only search on the package names, not the long description. +Configuration Item: bf(APT::Cache::NamesOnly). + +dit(bf(--all-names)) +Make bf(pkgnames) print all names, including virtual packages and missing +dependencies. Configuration Item: bf(APT::Cache::AllNames). dit(bf(-c, --config-file)) Configuration File; Specify a configuration file to use. bf(apt-get) will