# Updating LEDE Source/Recompiling

**URL:** <https://forum.openwrt.org/t/updating-lede-source-recompiling/9646>\
**Category:** For Developers\
**Created:** [December 13, 2017, 5:26pm UTC](https://forum.openwrt.org/t/updating-lede-source-recompiling/9646 "2017-12-13T17:26:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![anomeome](https://forum.openwrt.org/user_avatar/forum.openwrt.org/anomeome/32/15002_2.png) [@anomeome](https://forum.openwrt.org/u/anomeome)\
**Post date:** [December 13, 2017, 10:15pm UTC](https://forum.openwrt.org/t/updating-lede-source-recompiling/9646/6 "2017-12-13T22:15:06Z")

</div>

Copy, not append/cat, something like:

```
#!/bin/sh
#
#CDBU=$(date +"%F_%H%M%S")
#BAK="../abu/$CDBU"
#cp .config "$BAK"
# or set aside the configdiff after it is generated, whatever
#make clean (dir/dist)
# i tend to the following rather than the previous, YMMV
# rm -rf bin build_dir tmp
#git pull
#./scripts/feeds update -a
#./scripts/feeds install -a
#./scripts/diffconfig.sh > configdiff
#cp configdiff .config
#make defconfig;make oldconfig

```

make a script and remove comment on the bits that work for you.

---

_[View the full topic](https://forum.openwrt.org/t/updating-lede-source-recompiling/9646)._
