# \[TUTORIAL\] How to use Setup.bat and how to reduce download size

**URL:** <https://forums.unrealengine.com/t/tutorial-how-to-use-setup-bat-and-how-to-reduce-download-size/17640>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub, Engine-Source-GitHub\
**Created:** [December 22, 2014, 12:26pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-use-setup-bat-and-how-to-reduce-download-size/17640 "2014-12-22T12:26:45Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![SRombauts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SRombauts](https://forums.unrealengine.com/u/SRombauts)\
**Post date:** [November 7, 2017, 8:25pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-use-setup-bat-and-how-to-reduce-download-size/17640/22 "2017-11-07T20:25:53Z")

</div>

Hi, just an update with my finding on current master with upcoming UE 4.19.

-exclude=Dingo does nothing for me, nor -exclude=Switch, and -exclude=Mac -exclude=Linux are already the defaults, so here is the command I am using:

```auto

Setup.bat -exclude=WinRT -exclude=Linux32 -exclude=osx32 -exclude=Android -exclude=HTML5 -exclude=TVOS -exclude=IOS -exclude=GoogleVR -exclude=GoogleTest -exclude=LeapMotion

```

This by itself reduce the download of more than 1.6GB 🙂

Using the above “.gitdepsignore” you can skip some 1.6GB more.

So, coming from:

```auto

Setup.bat
Checking dependencies (excluding Mac, Linux)...
Updating dependencies: 0% (1/31957), 1.9/ **5559.8** MiB

```

Combining those two get you to:

```auto

Setup.bat -exclude=WinRT -exclude=Linux32 -exclude=osx32 -exclude=Android -exclude=HTML5 -exclude=TVOS -exclude=IOS -exclude=GoogleVR -exclude=GoogleTest -exclude=LeapMotion
Checking dependencies (excluding Mac, Linux, WinRT, Linux32, osx32, Android, HTML5, TVOS, IOS, GoogleVR, GoogleTest, LeapMotion)...
Updating dependencies: 0% (1/19936), 1.9/ **2216.9** MiB

```

---

<div class="post-metadata">

**Author:** ![RSN4D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RSN4D](https://forums.unrealengine.com/u/RSN4D)\
**Post date:** [September 25, 2022, 1:47am UTC](https://forums.unrealengine.com/t/tutorial-how-to-use-setup-bat-and-how-to-reduce-download-size/17640/23 "2022-09-25T01:47:56Z")

</div>

This is super useful!  
Is there maybe a list of exclude/include options for current 5.0/5.1 branch?

---

<div class="post-metadata">

**Author:** ![Igor\_Tceglevskii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Igor\_Tceglevskii](https://forums.unrealengine.com/u/Igor_Tceglevskii)\
**Post date:** [September 14, 2023, 11:40pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-use-setup-bat-and-how-to-reduce-download-size/17640/24 "2023-09-14T23:40:59Z")

</div>

> [@msvcrt](#):
>
> P.S. Thanks for the sources of the _GitDependencies_ program, Epic! This is how I learned all this stuff!

Noob question, what’s the GitDependencies program mentioned here?

---

<div class="post-metadata">

**Author:** ![zz2108828](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zz2108828/32/468260_2.png) [@zz2108828](https://forums.unrealengine.com/u/zz2108828)\
**Post date:** [September 29, 2023, 7:14pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-use-setup-bat-and-how-to-reduce-download-size/17640/25 "2023-09-29T19:14:52Z")

</div>

🤚 The way to save you disk storage.

✅ _Try to read **Commit.gitdeps.xml** file._  
This file is about what dependencies you will download.And exclude option string is related to File Name in it.

👨‍💻 The code is in [here](https://github.com/EpicGames/UnrealEngine/blob/5ccd1d8b91c944d275d04395a037636837de2c56/Engine/Source/Programs/GitDependencies/Program.cs#L507C5-L507C5)

These options work well in UE5.31

> –exclude=osx64 --exclude=osx32 --exclude=TVOS --exclude=Mac --exclude=mac-arm64 --exclude=WinRT --exclude=Linux --exclude=Linux32 --exclude=Linux64 --exclude=Unix --exclude=OpenVR --exclude=GoogleOboe --exclude=GooglePlay --exclude=GoogleGameSDK

> –exclude=Documentation --exclude=Samples --exclude=Templates

You can also add .gitdepsignore to root folder to precise deps control.

> Engine/Plugins/Runtime/OpenXR

✅ If you don’t need to use git clean -fdx command,delete **.git/ue-gitdeps** folder to remove download cache file or use **–no-cache** option to avoid cache.  
👨‍💻 The code is in [this commit](https://github.com/EpicGames/UnrealEngine/pull/749/commits/8c1bd98e4e01a0899637345d4286c6478edb9f80).

[Previous page](https://forums.unrealengine.com/t/tutorial-how-to-use-setup-bat-and-how-to-reduce-download-size/17640.md?page=1)
