<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Dec 12, 2015 at 1:23 AM, Eax Melanhovich <span dir="ltr"><<a href="mailto:afiskon@devzen.ru" target="_blank">afiskon@devzen.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello.<br>
<br>
I would like to have a command like lxc-ls, but for templates, i.e.<br></blockquote><div><br></div><div>ls /usr/share/lxc/templates/<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
which allows to show all available templates with corresponding status<br>
(downloaded / not downloaded). </blockquote><div><br></div><div><br></div><div>list all available images from download template: </div><div>/usr/share/lxc/templates/lxc-download -l<br></div><div><br></div><div>Listing all downloaded templates (including cached rootfs created by os-specific templates):</div><div>ls -d /var/cache/lxc/*/*/*<br></div><div><br></div><div>Note that some templates (e.g. download template) will check whether your cache is up-to-date, and if not, will download a new version next time you use that template.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Also it would be nice to have a command<br>
for removing downloaded templates.<br>
<br></blockquote><div><br></div><div><br></div><div>rm -rf /var/cache/lxc/TEMPLATE/DISTRO_OR_VERSION</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>