I installed lnd (lighgning network daemon) using the below command.

sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-armv7-v0.5.1-beta/*

What's the cleanest way to remove/rollback this? (I'd like to install a different version). I was thinking of simply removing the binary but would that be enough?

rm /usr/local/bin/lnd 
  • I guess it depends on what else was in the directory lnd-linux-armv7-v0.5.1-beta/ You told it to install everything in that directory to /usr/local/bin
    – T. M.
    Dec 10, 2018 at 1:31

2 Answers 2


I downloaded the tar.gz from the tutorial I assume you used and there are only two files there lnd and lncli.

Simply delete these with sudo rm -f /usr/bin/lnd /usr/bin/lncli.


install copies the files specified on the command line (in your case, all files inside lnd-linux-armv7-v0.5.1-beta to the target directory (in your case, /usr/local/bin). In order to undo this, you must find you which files you had in lnd-linux-armv7-v0.5.1-beta, and remove files with identical names in the target directory.

If the file names didn't change across two releases, simply installing a newer version in the same directory is enough. install overwrites existing files during installation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.