The full package specification syntax


If you do % pacman -help, you'll see that the general form of the command line in Pacman is basically a switch like -get or -fetch followed by a list of package specifications like BU:Python. The general form of such a package specification is

{Cache1}:{Cache2}:{Cache3}:...:{CacheN}:{SubdirectoryPath}{Package} | {requirements}

where

  1. {Cach1}:{Cach2}:{Cach3}:...:{CacheN}: is an optional cache specification. A cache can be

  2. {SubdirectoryPath} is an optional subdirectory path which can be used for source caches. If, for example, you have a source cache FooCache and have package Foo in file Foo.pacman in subdirectory foostuff, you can refer to this as FooCache:foostuff/Foo.

  3. {Package} is a package name like Python or the name of a Pacman source code file like Python.pacman.

  4. The optional | {requirements} is any expression in the Pacman language which the package in question must satisfy. Typical expressions are version('1.0'), versionGE('1.2'); versionLE('1.4'), tag('graphics'); { version('1.0') OR versionGE('1.3')}.
If you don't specify any caches, Pacman searches the caches in your trusted.caches file in order.

Pacman Headquarters