Repository/ostree cleanup
Alexander Larsson
alexl at redhat.com
Tue Jan 10 10:53:19 UTC 2017
On fre, 2017-01-06 at 09:44 -0600, Dan Nicholson wrote:
> > > > > > > > Use "flatpak build-update-repo --prune" (or "ostree prune") on the
repo. Look at the --prune-depth option. Beware that there potential
issues if you do this while the repo is being updated since there's
currently no locking for prune. However, if you can run this while
there are no updates to the repo happening, you'll be safe. If you
can't ensure that the repo won't be updated, a sufficiently deep
depth will make the potential for removing a needed object pretty
small.
I don't think it is ever unsafe to delete old versions, or am I missing
something? I mean, clearly you can't install the versions being
deleted, or be in the process of downloading it. However, if you have
an old version locally installed, removing it from the remote should be
ok (i.e. keep working locally and still be able to pull the latest
version).
That said, it probably makes sense to have a few versions around, in
case of frequent updates while someone is doing an update on some very
slow link.
ostree prune also has a by-age pruning option that flatpak build-
update-repo doesn't, which may be useful.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl at redhat.com alexander.larsson at gmail.com
He's a one-legged day-dreaming senator whom everyone believes is mad.
She's a psychotic wisecracking lawyer with a knack for trouble. They
fight crime!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20170110/dbc99ddc/attachment.html>
More information about the xdg-app
mailing list