New repoclean tool

220 views
Skip to first unread message

Gregory Neagle

unread,
Oct 30, 2019, 5:11:30 PM10/30/19
to repo...@googlegroups.com
This commit (https://github.com/wdas/reposado/commit/304f2628b3bc9f35cf9d57d4c05de87beca5b4be) adds a new repoclean tool you can use to identify and optionally remove "abandoned" products from your repo.

Some background:

A few weeks ago, Apple started re-issuing hundreds of products signed with expiring/expired certs. The reissued products had new product ids, which lead to huge increases in disk space usage for a repo until/unless you used `repoutil --purge-products all-deprecated`.

At the same time, Apple changed the naming style of the product directories. Reposado no longer could correctly find the local copy of newly issued products. If Apple deprecated any of these newer products,  `repoutil --purge-products all-deprecated` would remove the product from its internal database of products, but would fail to properly purge the disk space used by the product. That product now became abandoned/forgotten/orphaned. Reposado had lost all references to it.

Thus the repoclean tool.

If you update your reposado tools, repoutil will once again be able to find the local copy of new products. repoclean can help you find the abandoned/orphaned products and remove them from the locally replicated downloads.

Use with care! If it deletes something by accident and you don't have a backup, recovery might be difficult or impossible...

-Greg

Mike Solin

unread,
Oct 30, 2019, 6:03:30 PM10/30/19
to repo...@googlegroups.com
Wow, thanks Greg! This freed up about 100 GB in my repo.

--
You received this message because you are subscribed to the Google Groups "reposado" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reposado+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reposado/6AD08921-7482-44E0-BEF5-3B59538DFF6B%40mac.com.

Matthew Butch

unread,
Nov 9, 2019, 9:57:32 PM11/9/19
to repo...@googlegroups.com
Thanks for this too Greg! It freed up 310GB on mine!

FYI setup.py doesn’t install repoclean. Was that intentional?


--

Matthew Butch

"fiat justicia ruat colelum"
(let justice be done though the heavens may fall)

Sent with Mac OS X High Sierra Mail 11.4 (3445.8.2)





Gregory Neagle

unread,
Nov 9, 2019, 11:31:22 PM11/9/19
to repo...@googlegroups.com
I did not create nor do I use or maintain setup.py...

I just use git clone and git pull...

Sent from my iPhone

On Nov 9, 2019, at 6:57 PM, Matthew Butch <matthe...@gmail.com> wrote:

Thanks for this too Greg! It freed up 310GB on mine!

Ryan Stasel

unread,
Nov 11, 2019, 12:43:49 PM11/11/19
to 'Gregory Neagle' via reposado
Related question to this:

If I no longer want to mirror products for older OSes (10.9, 10.10, 10.11), I’ve commented out the lines for those software catalogs. But it doesn’t seem to have resulted in a bunch of updates being deprecated.

Am I missing something?

Thanks!
> To view this discussion on the web visit https://groups.google.com/d/msgid/reposado/9A086549-3BFC-4610-98F4-55FBE56CBA82%40mac.com.

Mike Solin

unread,
Nov 11, 2019, 2:00:51 PM11/11/19
to repo...@googlegroups.com
You'll want to specify the catalogs you want to sync in the preferences file:


From there, just run a repo_sync, then purge deprecated updates. No need to comment anything out from the core code.

Ryan Stasel

unread,
Nov 11, 2019, 2:02:02 PM11/11/19
to 'Gregory Neagle' via reposado
Sorry, I commented out the catalogs in the preferences file. Then did a sync, and then a purge. It only seemed to remove a TON of voice updates. =/
> To view this discussion on the web visit https://groups.google.com/d/msgid/reposado/CAN1%2Bh_ajWdvWYHGmV61KpX5SpuvhPdzTkroCWJwXbOJwOA_tdg%40mail.gmail.com.

Daniel Rhebel

unread,
Nov 11, 2019, 2:17:28 PM11/11/19
to reposado
Much appreciated Greg!

Matt Butch

unread,
Nov 11, 2019, 3:57:20 PM11/11/19
to repo...@googlegroups.com
Ah ok. I use it in my Ansible deploy script. I suppose I can do a PR to add it?


Reply all
Reply to author
Forward
0 new messages