# Update rclone to latest version with rclone -U

**URL:** <https://forum.rclone.org/t/update-rclone-to-latest-version-with-rclone-u/10954>\
**Category:** Howto Guides\
**Created:** [July 22, 2019, 1:44am UTC](https://forum.rclone.org/t/update-rclone-to-latest-version-with-rclone-u/10954 "2019-07-22T01:44:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattzab](https://forum.rclone.org/user_avatar/forum.rclone.org/mattzab/32/2839_2.png) [@mattzab](https://forum.rclone.org/u/mattzab)\
**Post date:** [July 22, 2019, 1:44am UTC](https://forum.rclone.org/t/update-rclone-to-latest-version-with-rclone-u/10954/1 "2019-07-22T01:44:43Z")

</div>

**Disclaimer 1:** Unix systems only- I know nearly nothing about Windows, but maybe something similar can be done. I have no idea. Tested only on Linux, but should work for Macintosh OS by Apple Computers, I presume.

**Disclaimer 2:** As far as I can tell, this does not disrupt the native -U flag that comes with rclone, when being used with regular commands. (Since this is used only by itself)

Copy this to `~/.bashrc`

`rclone() { if [[$@ == "-U"]]; then command curl https://rclone.org/install.sh | sudo bash; else command rclone "$@"; fi; }`

Save, then `source ~/.bashrc`

Now running `rclone -U` will automatically update rclone to the latest version. Helpful for keeping updated. Could even add rclone -U to a cron job of some sort.

---

<div class="post-metadata">

**Author:** ![alfred](https://forum.rclone.org/user_avatar/forum.rclone.org/alfred/32/1164_2.png) [@alfred](https://forum.rclone.org/u/alfred)\
**Post date:** [July 22, 2019, 4:17am UTC](https://forum.rclone.org/t/update-rclone-to-latest-version-with-rclone-u/10954/2 "2019-07-22T04:17:56Z")

</div>

Thanks, now we can update rclone very easy. 😉

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [July 22, 2019, 11:27am UTC](https://forum.rclone.org/t/update-rclone-to-latest-version-with-rclone-u/10954/3 "2019-07-22T11:27:34Z")

</div>

There is an issue about doing this so it would work with all OSes here:

> <https://github.com/ncw/rclone/issues/3269>

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [October 20, 2019, 11:27am UTC](https://forum.rclone.org/t/update-rclone-to-latest-version-with-rclone-u/10954/4 "2019-10-20T11:27:34Z")

</div>

Closed on October 20, 2019, 11:27am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
