+ <term><option>––add-package</option></term>
+ <term><option>-a</option></term>
+ <indexterm><primary><option>––add-package</option></primary></indexterm>
+ <listitem>
+ <para>Reads package specification from the input (see below),
+ and adds it to the database of installed packages. The
+ package specification must be a package that isn't already
+ installed.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>––input-file=<replaceable>file</replaceable></option></term>
+ <term><option>-i <replaceable>file</replaceable></option></term>
+ <indexterm><primary><option>––input-file</option></primary></indexterm>
+ <listitem>
+ <para>Read new package specifications from file
+ <replaceable>file</replaceable>. If a value of
+ <filename>"-"</filename> is given, standard input is used.
+ If no <option>-i</option> is present on the command-line,
+ an input file of <filename>"-"</filename> is assumed.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>––auto-ghci-libs</option></term>
+ <term><option>-g</option></term>
+ <indexterm><primary><option>––auto-ghci-libs</option></primary>
+ </indexterm>
+ <listitem>
+ <para>Automatically generate the GHCi
+ <filename>.o</filename> version of each
+ <filename>.a</filename> Haskell library, using GNU ld (if
+ that is available). Without this option,
+ <literal>ghc-pkg</literal> will warn if GHCi versions of
+ any Haskell libraries in the package don't exist.</para>
+
+ <para>GHCi <literal>.o</literal> libraries don't
+ necessarily have to live in the same directory as the
+ corresponding <literal>.a</literal> library. However,
+ this option will cause the GHCi library to be created in
+ the same directory as the <literal>.a</literal>
+ library.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>––config-file <replaceable>file</replaceable></option></term>
+ <term><option>-f <replaceable>file</replaceable></option></term>
+ <indexterm><primary><option>––config-file</option></primary>
+ </indexterm>
+ <listitem>
+ <para>Use <replaceable>file</replaceable> as an additional
+ package configuration file. This is used to modify
+ configuration files for use with GHC's
+ <option>-package-conf</option> option.</para>
+
+ <para>There may be any number of configuration files named
+ on the command line; files mentioned later on the
+ command-line override those mentioned earlier. The
+ <emphasis>last</emphasis> configuration file mentioned on
+ the command-line is the only one that is actually modified
+ by <literal>ghc-pkg</literal>.</para>
+
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>––list-packages</option></term>