Removing Incus installed from source

make uninstall
make: *** No rule to make target ‘uninstall’. Stop.

any ideas please why this is happening

anyone have any suggestions

There are no make uninstall, just like we don’t have any make install.

Hi thanks for reply, So how do I completely remove incus when installed from source then.

Here are the instructions to install Incus,

Incus is written in the Go language, and when you run make, the software is compiled and the executables are placed in the ~/go/bin/ directory. The make command does not perform any other change to your system.

After you compiled Incus, it’s up to you to add that ~/go/bin/ directory to your $PATH.
You are advised to do so as soon as the compilation is completed.
Specifically you are advised to add these to your ~/.bashrc.

export PATH="${PATH}:$(go env GOPATH)/bin"
export LD_LIBRARY_PATH="$(go env GOPATH)/deps/cowsql/.libs/:$(go env GOPATH)/deps/raft/.libs/:${LD_LIBRARY_PATH}"

Therefore, to answer your question, to remove the Incus files that you installed from compilation of the source per official instructions,

  1. You would remove the Incus binaries from ~/go/bin (or, more correctly, $(go env GOPATH)/bin).
    Here is the list of those files,
    dev_incus-client
    fuidshift
    generate
    incus
    incus-agent
    incus-benchmark
    incus-migrate
    incus-simplestreams
    incus-user
    incusd
    lxc-to-incus
    lxd-to-incus mini-oidc
    sysinfo
    tls2jwt
  2. You may also remove the added lines to ~/.bashrc.

Thank you for that I was thinking the same but I wasn’t sure. Cheers guys