2014-09-21 16:01:15 +00:00
|
|
|
cdist-type__package_update_index(7)
|
|
|
|
===================================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__update_index - Update the package index
|
2014-09-21 16:01:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This cdist type allows you to update the package index on the target.
|
|
|
|
It will automatically use the appropriate package manager.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
None
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
type
|
2014-09-21 16:01:15 +00:00
|
|
|
The package manager to use. Default is determined based on the $os
|
|
|
|
explorer variable.
|
2016-07-20 15:34:47 +00:00
|
|
|
e.g.
|
2016-05-20 06:50:56 +00:00
|
|
|
* apt for Debian
|
|
|
|
* yum for Red Hat
|
|
|
|
* pacman for Arch Linux
|
2014-09-21 16:01:15 +00:00
|
|
|
|
2018-01-30 12:16:29 +00:00
|
|
|
maxage
|
2018-08-29 07:30:27 +00:00
|
|
|
Available for package manager apt and pacman, max time in seconds since
|
|
|
|
last update. Repo update is skipped if maxage is not reached yet.
|
2014-09-21 16:01:15 +00:00
|
|
|
|
2018-01-30 12:24:28 +00:00
|
|
|
MESSAGES
|
|
|
|
--------
|
|
|
|
apt-cache updated (age was: currage)
|
|
|
|
apt-cache was updated (run of `apt-get update`). `currage` is the time
|
|
|
|
in seconds since the previous run.
|
|
|
|
|
|
|
|
|
2014-09-21 16:01:15 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Update the package index on the target
|
|
|
|
__package_update_index
|
2014-09-21 16:01:15 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Force use of a specific package manager
|
|
|
|
__package_update_index --type apt
|
2014-09-21 16:01:15 +00:00
|
|
|
|
2018-01-30 12:16:29 +00:00
|
|
|
# Only update every hour:
|
|
|
|
__package_update_index --maxage 3600 --type apt
|
2018-08-29 07:30:27 +00:00
|
|
|
|
2018-01-30 12:24:28 +00:00
|
|
|
# same as above (on apt-type systems):
|
2018-01-30 12:16:29 +00:00
|
|
|
__package_update_index --maxage 3600
|
2014-09-21 16:01:15 +00:00
|
|
|
|
2016-06-17 19:28:16 +00:00
|
|
|
AUTHORS
|
|
|
|
-------
|
2018-01-30 12:16:29 +00:00
|
|
|
| Ricardo Catalinas Jiménez <jimenezrick--@--gmail.com>
|
|
|
|
| Thomas Eckert <tom--@--it-eckert.de>
|
2018-08-29 07:30:27 +00:00
|
|
|
| Stu Zhao <z12y12l12--@--gmail.com>
|
2014-09-21 16:01:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2016-07-20 15:34:47 +00:00
|
|
|
|
|
|
|
Copyright \(C) 2014 Ricardo Catalinas Jiménez. You can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|