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 $os explorer variable. for example:
    • apt for Debian
    • yum for Red Hat
    • pacman for Arch Linux
  • maxage β€” available for the package manager apt and pacman only, this is the max time in seconds since the last update. if maxage hasn'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) β€” the apt-cache was updated (that's a run of apt-get update). currage is 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.

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