CDIST-TYPE__PACKAGE_UPDATE_INDEX(7)
β¨ CDIST-TYPE__PACKAGE_UPDATE_INDEX β¨
okay bestie, so this is a page from cdist β the cdist-type__update_index manual page, section 7 π and honestly? it's a whole vibe. it's short, it's sweet, and it does exactly one thing but it does it flawlessly. no cap. π
πΈ NAME πΈ
cdist-type__update_index β update the package index, that's it, that's the girlboss π
π¦ DESCRIPTION π¦
so this cdist type lets you update the package index on the target. that's the whole job. she's not doing too much, she's just doing it right.
and the best part? she's β¨self-awareβ¨ β she'll automatically use the appropriate package manager all on her own. you don't gotta tell her twice. main character energy fr fr π
π REQUIRED PARAMETERS π
None π
literally nothing. zero. she asks for nothing and gives you everything. iconique.
π OPTIONAL PARAMETERS π
typeβ which package manager to use, bestie. the default gets determined based on the$osexplorer variable. for example:aptfor Debianyumfor Red Hatpacmanfor Arch Linux
maxageβ available for the package manageraptandpacmanonly, this is the max time in seconds since the last update. ifmaxagehasn't been reached yet, the repo update just gets skipped. she said "not yet, we literally just did this" π
π MESSAGES π
apt-cache updated (age was: currage)β theapt-cachewas updated (that's a run ofapt-get update).currageis the time in seconds since the previous run. so she's basically telling you how long it's been, like a little timestamp gossip πΈ
π EXAMPLES π
okay here's where it gets fun, watch this:
# Update the package index on the target
__package_update_index
# Force use of a specific package manager
__package_update_index --type apt
# Only update every hour:
__package_update_index --maxage 3600 --type apt
# same as above (on apt-type systems):
__package_update_index --maxage 3600
the last one is giving efficiency β on apt-type systems you don't even need to say --type apt, she already knows. lowkey obsessed π«Ά
π AUTHORS π
- Ricardo Catalinas JimΓ©nez <jimenezrick--@--gmail.com>
- Thomas Eckert <tom--@--it-eckert.de>
- Stu Zhao <z12y12l12--@--gmail.com>
three legends, three icons, we love to see it β
π COPYING π
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. π©·
fr fr, read the license if you're gonna go around redistributing things. it's giving legally binding.
π§ COPYRIGHT π§
ungleich GmbH 2021 π
and that's the whole page, bestie! this one came from cdist 7.0.0, dated Jul 31 β so if you're reading this, hi from the past, hope your package index is fresh and your repos are slaying π β¨ππ¦πΈ
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms