ai_prefs: OS Update Sources
The ai_prefs
utility is used to manage operating system update sources. By using this utility, you can perform the following tasks:
- adding/removing OS update source entries to/from Plesk Installer
- changing OS update source entries
- retrieving a list of OS update sources registered in Plesk, in human-readable and XML formats
Usage
ai_prefs <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command adds to Plesk Installer the Fedora Core 7 repository, and sets the lowest priority to it.
plesk bin ai_prefs --add-vendor-source -url http://download.fedora.redhat.com/fedora/linux/core/updates/7/i386 -type repomd -priority 1
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Adds a source of operating system updates. Requires using the |
To register RPM metadata repository for Fedora Core 6: plesk bin ai_prefs -a -url http://download.fedora.redhat.com/fedora/linux/core/updates/6/i386 -type repomd |
|
|
Removes a source of operating system updates. |
To unregister the OS update source with ID 6: plesk bin ai_prefs -r 6 |
|
|
Updates a source of operating system updates preferences. |
To set the highest priority to the OS update source with ID 4: plesk bin ai_prefs -u 4 -priority 999 |
|
|
Lists OS updates sources configured in Plesk in the human-readable format. |
plesk bin ai_prefs -l |
|
|
Lists OS updates sources configured in Plesk in the xml format. |
plesk bin ai_prefs -lx |
|
|
Displays help on the use of the utility. |
plesk bin ai_prefs -h |
Note: The --vendor-sources-list
and --vendor-sources-list-xml
commands retrieve the following information on each of the OS update source entries: ID, type, URL, priority, status (enabled/disabled), authentication status, login, password.
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Specifies the location of OS update source, which may start with Required with the |
To register RPM metadata repository for Fedora Core 6: plesk bin ai_prefs -a -url http://download.fedora.redhat.com/fedora/linux/core/updates/6/i386 -type repomd |
|
|
Specifies whether the source is an XML RPM metadata repository, or a plain repository directory mounted in the local system. Required with the |
To register directory plesk bin ai_prefs -a -url file:///mnt/cdrom/RedHat-Linux9.0/updates -type directory |
|
|
Sets priority of the source: Default value is |
To set the highest priority to the OS update source with ID 4: plesk bin ai_prefs -u 4 -priority 999 |
|
|
Specifies if the source requires authorization. Is |
To retrieve updates from the source which ID is 3 as authenticated user "autoupdate" (with password ghYnn39s7f): plesk bin ai_prefs -u 3 -auth true -login autoupdate -password ghYnn39s7f |
|
|
Specifies a login name for authorization on the source. Required if the |
|
|
|
Specifies password for authorization on the source. Required if the |