Directory for executable files
Ralf Mardorf
silver.bullet at zoho.com
Tue May 21 10:27:19 UTC 2019
On Tue, 21 May 2019 10:55:08 +0200, Tom H wrote:
>Given "along with many other files", I'd do what google-chrome (for
>example) does, move "~/Downloads/foodir" to "/opt", and symlink
>"/usr/local/bin/foo" to "/opt/foodir/foo".
Depending on the content of the "zipball" moving the contend to
different locations such as /usr/bin and /usr/lib could cause issues.
Without doubts /opt is the best location for this. One issue at least
would be to remove the files, when updating software that was installed
from a "zipball" without building a package.
My Ubuntu install:
[rocketmouse at archlinux ~]$ ls -hAl /mnt/moonstudio/opt/
total 12K
drwxr-xr-x 3 root root 4.0K Sep 9 2017 google
drwxr-xr-x 8 root root 4.0K Nov 9 2018 icecat-60.3.0
drwxr-xr-x 7 root root 4.0K Nov 11 2016 XnView
[rocketmouse at archlinux ~]$ ls -hAl /mnt/moonstudio/usr/local/bin/{icecat,firefox}
lrwxrwxrwx 1 root root 6 Jan 12 2016 /mnt/moonstudio/usr/local/bin/firefox -> icecat
lrwxrwxrwx 1 root root 25 Nov 13 2018 /mnt/moonstudio/usr/local/bin/icecat -> /opt/icecat-60.3.0/icecat
My Arch Linux install:
[rocketmouse at archlinux ~]$ ls -hAl /opt/
total 64K
drwxr-xr-x 6 root root 4.0K Nov 22 2016 4L
drwxr-xr-x 3 root root 4.0K Jan 3 15:26 bullet
drwxr-xr-x 3 root root 4.0K Aug 26 2014 cuda
drwxrwxr-x 12 root root 4.0K May 2 06:55 eagle
drwxr-xr-x 4 root root 4.0K Jul 7 2013 google
drwxr-xr-x 9 root root 12K Apr 30 2018 gr-55_floorboard
drwxr-xr-x 6 root root 4.0K Nov 6 2018 maven
drwxr-xr-x 6 root root 4.0K May 15 13:40 REAPER
drwxr-xr-x 2 root root 4.0K Jun 9 2015 sage
drwxr-xr-x 3 root root 4.0K Oct 13 2017 stapler
drwxr-xr-x 2 root root 4.0K Mar 15 2017 sublime-text
drwxr-xr-x 2 root root 4.0K May 12 10:31 tor-browser-en
drwxr-xr-x 13 root root 4.0K May 19 10:40 VirtualBox
drwxr-xr-x 7 root root 4.0K May 19 08:48 vivaldi
More information about the ubuntu-users
mailing list