Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cleanup Android repo

A long time ago, I followed this guide: https://source.android.com/source/downloading.html to download the master copy of Android Source Code. That was ~5GB as far as I remember.

Today I wanted to update my local copy to branch Android 4.4.4, so I followed the same guide but instead of requesting the master, I specified a branch using the -b command.

I noticed that the size of the final source code increased dramatically to ~12GB which leaves me suspicious that old unneeded files are not deleted using the repo sync command.

How can I clean up?

The output folder is not counted so those 12GB are pure source code only.

like image 531
AMahdy Avatar asked Apr 29 '26 23:04

AMahdy


1 Answers

AOSP has increased in size a lot, so this size is perfectly normal. However, you can remove all files which is started with tmp_pack.

Go inside of source folder, then insert this command:

find -name tmp_pack_* -delete

It can delete files which is downloaded partially.

like image 68
Arman Avatar answered May 01 '26 11:05

Arman