Skip to content

rclone self-update command #548

Closed

Description

@nagualcode

Please, add a option to get the last binary version from command line.
Rclone is very useful to embed hardware, such as the Pi, and others.
It would be very handy to have a cron job to search for the last version and be safe that rclone will be always up to date across a network of embeds,

Activity

  1. added this to the milestone on Jun 28, 2016
  2. ncw commented on Jun 28, 2016

    @ncw
    Member

    Nice idea. Might be a bit of work. I wonder if there are any Go frameworks about to help?

  3. nagualcode commented on Sep 17, 2016

    @nagualcode
    Author

    I wish I could help you in here

  4. ivandeex commented on Nov 16, 2020

    @ivandeex
    Member

    Duplicate of #3269

  5. ivandeex commented on Nov 16, 2020

    @ivandeex
    Member

    Merging #2867 into this one

  6. ivandeex commented on Feb 14, 2021

    @ivandeex
    Member

    This ticket duplicates #3269 so merging in.

  7. ivandeex commented on Feb 19, 2021

    @ivandeex
    Member

    Sorry all. I was wrong when I closed this in favor of #3269. I can see now that that ticket actually requests automatic update feature. Sorry for noise. Reopening.

  8. 14 remaining items

  9. ivandeex commented on Feb 20, 2021

    @ivandeex
    Member

    I'm not yet decided about two more options

    • --backup to backup previous executable with a timestamp
    • --beta to mimic install.sh -s beta

    EDIT: --beta will be implemented as it seems simple.

  10. ivandeex commented on Feb 20, 2021

    @ivandeex
    Member

    I decided to tackle this one earlier because I want to save time of rclone support team.
    I see a lot of support questions here and on rclone forum when rclone support guys have to explain that author's rclone version is outdated, and copy-paste upgrade instructions.
    I hope that one day this can be reduced to simply "please rerun your test after rclone self-update".

  11. ivandeex commented on Feb 25, 2021

    @ivandeex
    Member

    @ncw Could you make the CI/CD pipeline maintain a file like stable-version.txt (in addition to version.txt) on https://download.rclone.org ? This would unlock the rclone self-update --stable feature

    EDIT (ivandeex)
    This request and the next comment (hidden by me) will be factored into separate feature request #5076 to keep this one more focused.

  12. ivandeex commented on Feb 27, 2021

    @ivandeex
  13. ivandeex commented on Feb 27, 2021

    @ivandeex
    Member

    @ncw do you think rclone version --check can be made an alias for rclone self-update --check ??

  14. Jwink3101 commented on Feb 27, 2021

    @Jwink3101
    Contributor

    It may be a good idea to do more than just validate the hash for a (semi-)automatic update. Is it possible to sign the release and validate the signature? And then have the public key somewhere trustworthy? That would make me feel more comfortable about a self-updater. (Is this common practice?)

  15. ivandeex commented on Feb 27, 2021

    @ivandeex
    Member

    Your idea will need some support on the CI/CD side which will need time. I want to have self-update out ASAP, preferably in a month. This means we keep it simple at the moment. I propose to submit your idea as a new ticket (EDIT: and make it block on this one) so the team can address it later as an enhancement.

  16. linked a pull request that will close this issuecmd: rclone selfupdate #5080on Mar 1, 2021
  17. ivandeex commented on Mar 8, 2021

    @ivandeex
    Member

    @Jwink3101

    It may be a good idea to do more than just validate the hash for a (semi-)automatic update. Is it possible to sign the release and validate the signature?

    Your idea will be implemented in 1.55 or 1.56 with some modifications:

    • rclone will have a PGP public key embedded in the binary
    • SHA256 hashsum file signature will be validated with the key
    • distribution archive of a stable release will be verified by SHA256 upon download in memory
    • new binary will be extracted on disk from memory right after validations
    • this holds for stable releases, betas (if explicitly requested) will not be verified
  18. added a commit that references this issue on Mar 11, 2021
    6fa7434
  19. added a commit that references this issue on Jul 20, 2026
    5a8c36d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions