LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2017, 02:26 AM   #1
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Rep: Reputation: Disabled
Does anybody actually use /opt?


I've seen very few programs over the years that installed by default to the /opt directory. Which is somewhat puzzling since the /opt directory is there specifically for add-on software. I've recently decided to get serious about how I maintain my system and part of that is doing a better job of tracking and segregating the software. So I set up my new system with /opt on its own partition. The idea being that any superficial software I install will go there. But I'm curious to hear if others are doing this. What kind of adjustments have you made? Do you duplicate the /usr directory tree? Or do you just put the binaries in /opt and send everything else to the typical locations?

I still plan to put base programs in /usr. It would get too confusing trying to point programs to dependencies in multiple locations. So 'infrastructure' type programs will stay in the PATH.
 
Old 01-18-2017, 03:48 AM   #2
xamaco
Member
 
Registered: Sep 2009
Location: Bastelicaccia, Corsica
Distribution: Crux
Posts: 48

Rep: Reputation: 7
It's useful if you're an administrator, not much on your own PC. Have a look at Unix stack exchange.
 
Old 01-18-2017, 05:52 AM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,597

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Yes, I do.
 
Old 01-18-2017, 06:47 AM   #4
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Original Poster
Rep: Reputation: Disabled
So no consensus anywhere. Interesting. Thanks for the link, that was educational.
 
Old 01-18-2017, 10:09 AM   #5
bimboleum
Member
 
Registered: Oct 2009
Posts: 111

Rep: Reputation: 23
Hi,
VirtualBox, Vivaldi, libreoffice

cheers
pete
 
Old 01-18-2017, 10:33 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
cd /opt{ional}
There is a whole lot less there than in times past, me thinks.
Code:
/opt/ffmpeg
/opt/firefox
/opt/thunderbird
/opt/google

Last edited by Habitual; 01-18-2017 at 04:11 PM.
 
Old 01-18-2017, 10:35 AM   #7
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Original Poster
Rep: Reputation: Disabled
I'll probably end up shrinking that partition. No way I'm going to install enough to fill it.
 
Old 01-18-2017, 10:50 AM   #8
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,137

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I think it was Linux that put /opt out of business. Originally, back in the Unix days, all applications went into /opt because they were not part of Unix: they were bought separately. Once you had Linux distributions, it made sense of /opt to be reserved for just the programs that you didn't get with the distro. Nowadays, even if you compile from source, most programs are designed to install in /usr by default. I have only one thing in /opt: the Samsung printer software.
 
1 members found this post helpful.
Old 01-18-2017, 11:08 AM   #9
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
On Linux, I've seen /opt used by quite a few non-packaged applications. I think at one time, Processing used it for its "generic Linux" install, and the Foundry apps (Nuke, Mari, Modo, Katana) still use it, I think, and I believe Adobe Air uses it. I could be utterly wrong on ALL these, and maybe they only used /opt because I told them to, during install... but I figured it's worth mentioning because the question wasn't "does any upstream project use /opt by default", just whether or not anyone uses it. So yes, I use it, either willfully or because some application defaults to it.

Slackbuilds.org occasionally uses /opt, too; usually for pre-compiled installs (Blender, LibreOffice; big apps that nobody wants to build). That's what I tend to use /opt for, as well.
 
Old 01-18-2017, 11:12 AM   #10
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,101
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Code:
$ cd /opt
harry@biker:/opt
$ ls
seamonkey
and it works real good there, also.
 
Old 01-18-2017, 11:19 AM   #11
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
I use /opt for some applications, particularly larger (e.g. Android Studio/sdk) ones that don't really need to be taking up my ssd space. I've found applications (at least, some of them) that I install outside of my package manager default to /opt. I use Arch linux
 
Old 01-18-2017, 12:43 PM   #12
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
I use /opt for company programs - Centos/RHEL/Debian. Anything that isn't part of the standard install or built from source goes into /opt. Anything that is required for it to run is put into /opt/'packagename'/require.

http://www.pathname.com/fhs/pub/fhs-...FTWAREPACKAGES
 
Old 01-18-2017, 12:46 PM   #13
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,003
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I use opt for a few things, but not much.
 
Old 01-18-2017, 12:52 PM   #14
stanvan
Member
 
Registered: May 2007
Posts: 123

Rep: Reputation: 50
I didn't choose /opt, but mine contains TeamViewer, Google Chrome, and Calibre (ebook management).
 
Old 01-18-2017, 01:04 PM   #15
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I use /opt -- the Google applications, mentioned above, aside I install Mozilla's Nightly browser and some Second Life clients in there. I'm not sure whether it's strictly used for but I put non-preinstalled and largely self-contained binaries there.

Last edited by 273; 01-18-2017 at 05:26 PM. Reason: I meant non-preinstalled.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell getopts: opt w/ optional parameter is taking next opt as its parameter! GrapefruiTgirl Programming 22 10-27-2010 06:00 AM
No Permission in /OPT Debizzle Linux - Newbie 3 01-11-2009 10:51 AM
Regarding # /opt/CTEact/bin/act & /opt/SUNWexplo/bin/explorer not available for x86 rajaniyer123 Solaris / OpenSolaris 6 04-24-2008 09:09 AM
regarding /opt directory... zameer_india Linux - Newbie 2 01-19-2005 12:48 AM
Use of /opt monz Linux - General 3 05-13-2004 08:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration