clean up .repo after sources are download

1,316 views
Skip to first unread message

Chandara MK

unread,
Sep 22, 2014, 4:44:27 AM9/22/14
to android-...@googlegroups.com

Hi All,

how to clean up repo after the sources are downloaded.
currently, my space has only 50GB to build android source.

while it has been building the sources, my pc is running out of space.

I've seen that .repo has the size up to 26GB. is it possible to clean it?

Thank
Mick

Glenn Kasten

unread,
Sep 22, 2014, 2:59:39 PM9/22/14
to android-...@googlegroups.com
Do an ls -l on <project>/.git and you'll see that there are important up-links to .repo.

Chandara MK

unread,
Sep 23, 2014, 11:44:06 AM9/23/14
to android-...@googlegroups.com

Can you show me the actual one?
i'm too new to repo git...

Thank
Mick

Magnus Bäck

unread,
Sep 24, 2014, 1:57:01 AM9/24/14
to android-...@googlegroups.com
On Monday, September 22, 2014 at 10:44 CEST,
Sure, but you'll lose the ability to use Git in your source tree,
including running 'repo sync' to get more recent code. I don't
think there's anything in the build itself that depends on running
Git, but there could be.

Short term that might be okay for you but long term you simply need
more disk. Given what it takes in terms of CPU and RAM to build AOSP,
a few extra tens of gigabytes of disk shouldn't be impossible.

You can also save some space (not sure how much) by using the --shallow
option of 'repo init' and/or the -c option of 'repo sync'. Using them at
this point won't do much good though; you'd have to wipe everything and
start from the beginning.

--
Magnus Bäck | Software Engineer, Development Tools
magnu...@sonymobile.com | Sony Mobile Communications

Chandara MK

unread,
Sep 24, 2014, 4:54:26 AM9/24/14
to android-...@googlegroups.com

Thank you Magnus for the recommendation.
With your point, I do agree.

Currently, I cannot add more extra space to my Ubuntu.
I need to build and test it for testing rom.

I have figured out to delete the project in .repo.

Actually, the .repo is a hidden folder. I just show hidden folder and delete it...:)

Thank,
Mick
Reply all
Reply to author
Forward
0 new messages