1CDIST-TYPE__PACKAGE_UPDATE_INDEX(7) cdist CDIST-TYPE__PACKAGE_UPDATE_INDEX(7)
2
3
4
6 cdist-type__update_index - Update the package index
7
9 This cdist type allows you to update the package index on the target.
10 It will automatically use the appropriate package manager.
11
13 None
14
16 type The package manager to use. Default is determined based on the
17 $os explorer variable. e.g. * apt for Debian * yum for Red Hat
18 * pacman for Arch Linux
19
20 maxage Available for package manager apt and pacman, max time in sec‐
21 onds since last update. Repo update is skipped if maxage is not
22 reached yet.
23
25 apt-cache updated (age was: currage)
26 apt-cache was updated (run of apt-get update). currage is the
27 time in seconds since the previous run.
28
30 # Update the package index on the target
31 __package_update_index
32
33 # Force use of a specific package manager
34 __package_update_index --type apt
35
36 # Only update every hour:
37 __package_update_index --maxage 3600 --type apt
38
39 # same as above (on apt-type systems):
40 __package_update_index --maxage 3600
41
43 Ricardo Catalinas Jiménez <jimenezrick--@--gmail.com>
44 Thomas Eckert <tom--@--it-eckert.de>
45 Stu Zhao <z12y12l12--@--gmail.com>
46
47
49 Copyright (C) 2014 Ricardo Catalinas Jiménez. You can redistribute it
50 and/or modify it under the terms of the GNU General Public License as
51 published by the Free Software Foundation, either version 3 of the
52 License, or (at your option) any later version.
53
55 ungleich GmbH 2019
56
57
58
59
606.4.0 Jan 04, 202C0DIST-TYPE__PACKAGE_UPDATE_INDEX(7)