OZ-CLEANUP-CACHE(1)
π OZ-CLEANUP-CACHE π
okay bestie, welcome to the oz-cleanup-cache page from the General Commands Manual β yes this is a section 1 command, and yes it's about to be your new fave lil housekeeping script β¨
πΈ NAME πΈ
oz-cleanup-cache β the tool that removes all the cached oz data π§Ή
π¦ SYNOPSIS π¦
oz-cleanup-cache [OPTIONS]
β¨ DESCRIPTION β¨
So basically, this is a tool that removes all of the data that Oz has cached. That's it, that's the job π
And listen, why do you care? Because the data Oz caches can grow fairly large, so it may genuinely be worthwhile to periodically clean it up. This is a simple script that does exactly that. Slay, honestly.
π«Ά heads up bestie: if you do cleanup the Oz cache, subsequent operating system installs will be slower, because Oz will have to re-download the installation media. So it's giving "tradeoff", not "free win". Just so you know π
π OPTIONS π
-c <config>β grab the configuration from the config file config, instead of the default/etc/oz/oz.cfg. If neither one exists, Oz will use sensible defaults. The config file is in standard ini format; for an explanation of the sections and keys, peep the CONFIGURATION FILE section below π-d <loglevel>β turn on debugging output to level loglevel. The log levels are:
0 β errors only (this is the default)
1 β errors and warnings
2 β errors, warnings, and information
3 β all messages
4 β all messages, prepended with the level and classname
-hβ print a short help message. short king behavior π
π CONFIGURATION FILE π
The Oz configuration file is in standard INI format with several sections. If any section or configuration key is missing, Oz will use a sensible default. For true/false configuration keys, the values of "true", "True", "yes", or "Yes" can be used to turn the option on, and "false", "False", "no", or "No" can be used to turn the behavior off. The configuration file should have the following form:
[paths]
output_dir = /var/lib/libvirt/images
data_dir = /var/lib/oz
screenshot_dir = .
sshprivkey = /etc/oz/id_rsa-icicle-gen
[libvirt]
uri = qemu:///system
type = kvm
bridge_name = virbr0
cpus = 1
memory = 1024
image_type = raw
[cache]
original_media = yes
modified_media = no
jeos = no
[icicle]
safe_generation = no
π the paths section π
The paths section defines the paths that Oz will use for storing data.
- The
output_dirkey describes where to store the images after they are built. - The
data_dirkey describes where to cache install media and use temporary storage. - Both locations must have a decent amount of free disk space in order for Oz to work properly. no cap, this one matters π
- The
screenshot_dirkey describes where to store screenshots of failed installs. - The
sshprivkeykey describes where the ssh keys are stored, which are required by Oz to do customization of the image.
π the libvirt section π
The libvirt section allows some manipulation of how Oz uses libvirt.
- The
urikey describes the libvirt URI to use to do the guest installation. - The
typekey defines what type of virtualization to use. - The
bridge_namekey defines which bridge Oz should place the guests that it launches on. - The
cpuskey defines how many cpus should be used inside the virtual machine. - The
memorykey defines how much memory (in megabytes) should be used inside the virtual machine. - The
image_typekey defines which output disk type should be used; this can be any value that libvirt supports.
π the cache section π
The cache section allows some manipulation of how Oz caches data. The caching of data in Oz is a tradeoff between installation time and storage space.
- The
original_mediakey tells Oz to cache the original installation media so that it does not have to download it the next time an install for the same operating system is requested. - The
modified_mediakey tells Oz to cache the oz-modified installation media so that it does not have to download and modify it the next time an install for the same operating system is requested. - The
jeoskey tells Oz to cache the installed operating system after installation. This can significantly speed up subsequent installation of the same operating system, with the additional downside of the operating system getting out-of-date with respect to security updates.
π Use with care. fr fr, that's the actual warning, don't come for me.
π§ the icicle section π§
The icicle section allows some manipulation of how Oz generates ICICLE output. ICICLE is a package manifest that can optionally be generated at the end of installs.
The safe_generation key controls whether Oz uses a throwaway overlay file while generating the ICICLE.
- If it is set to
"no"(the default), then Oz will boot up the guest at the end of the install and run the appropriate commands to generate the ICICLE. - If it is set to
"yes", then Oz will use a throwaway overlay file while generating the ICICLE. After the ICICLE is generated, Oz will delete the backing file, leaving the original disk image pristine. β¨ pristine. we love that for us.
π SEE ALSO π
oz-generate-icicle(1), oz-install(1), oz-customize(1), oz-examples(5)
πΈ AUTHOR πΈ
Chris Lalancette <clalancette@gmail.com> π
and that's the whole page bestie!! this lil cutie was living in the oz-cleanup-cache manual slot dated Feb 2011 β shoutout to the source + date vibes, they're iconic and they're staying. go clear some cache, hydrate, and ily π«Άππ
π¦ where this page comes from
- fedora 43: oz 0.18.1-23.fc43 Β· LicenseRef-Callaway-LGPLv2
- fedora 44: oz 0.18.1-25.fc44 Β· LicenseRef-Callaway-LGPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms