Alternatively to adding the installation path to $PATH
, you could also create an entry for µTorrent in the Alternatives System:
sudo update-alternatives --install usr/bin/utserver utorrent-server /opt/utorrent-server-v3_0/utserver 100
This will create a symlink to /opt/utorrent-server-v3_0/utserver
in usr/bin
. The differences to adding it to $path are:
- Works in environments where custom PATH is not set
- User indepentent (Well, setting the PATH for all users is possible too...)
- Finding the binary is managed by the system, and not by the user
- This may not be important for µTorrent, but it could help if you have multiple versions of a program installed, e.g. one compiled yourself and one from the packages, or multiple Java versions.
The general update-alternatives
installation syntax is:
sudo update-alternatives --install <link/to/be/created> <name> <link to the binary> <priority, the higher, the more preferred>
To change the defaut for any alternative, use
sudo update-alternatives --config <name>
sudo apt-get install deluge
– blade19899 Aug 25 '14 at 19:14