http://www.linuxbase.org/betaspecs/fhs/fhs/index.html
"/opt is reserved for the installation of add-on application software
packages.
A package to be installed in /opt must locate its static files in a
separate /opt/<package> or /opt/<provider> directory tree, where
<package>
is a name that describes the software package and <provider> is the
provider's LANANA registered name."
"/usr/lib includes object files and libraries. On some systems, it may
also include internal binaries that are not intended to be executed
directly by users or shell scripts.
Applications may use a single subdirectory under /usr/lib. If an
application uses a subdirectory, all architecture-dependent data
exclusively used by the application must be placed within that
subdirectory."
As for partitioning your drive, I don't do separate partitions for /etc
/opt /home. It has been decades since I even heard of anyone recommending
doing that.
-LTH
On Sat, Mar 24, 2018 at 11:18 AM, William Morder <doctor_contendo(a)zoho.com>
wrote:
> Okay, so new thread!
>
> As I was repartitioning my hard drive, I was trying to find out the
> lowdown on
> this /opt folder. This is a new thing since I have started running
> Trinity; I
> never noticed it before when running Kubuntu. Only after I started running
> the Trinity desktop, that is when I noticed the installation to /opt; and
> only then I noticed that other programs were installing in that folder.
>
> A friend told me that he creates separate partitions for both /opt and
> /etc;
> and then, too, I noticed that the new Icecat browser does something even
> weirder, which is to install in /usr/lib/icecat, rather than (like other
> Mozilla browsers) in /home/<USER>/.mozilla/.
>
> My question is really more or less the same for all these items. I want to
> be
> able, once I have configured them as I wish, just to clone that directory,
> so
> that I don't have to keep reinventing the wheel, over and over again.
>
> When I tried to research the /opt folder, I didn't find out much. If I
> create
> a separate partition, will I be able to leave it untouched like my home
> folder? Will Trinity (and other programs) automatically be installed
there?
>
> I suppose could just back it up regularly, then overwrite it once I have
> reinstalled, but I would like to treat it like my /home/<USER>/ folder,
and
> leave it intact.
>
> The same with Icecat: it seems to run better than Firefox/Iceweasel, but
to
install
everything in /usr/lib/icecat seems very irregular. Is there some
way
to get it to install elsewhere? for example, in /opt?
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-users-unsubscribe@
lists.pearsoncomputing.net
For additional commands, e-mail: trinity-users-help@lists.
pearsoncomputing.net
Read list messages on the web archive:
http://trinity-users.
pearsoncomputing.net/
Please remember not to top-post:
http://trinity.
pearsoncomputing.net/mailing_lists/#top-posting
--
-Leonard T. Harris
Web Services
Virginia Commonwealth University
http://www.vcu.edu/
I do recommend using separate partitions for home. The advantage is, if you
need to reinstall the os. You need only reformat / (root). /home is left
untouched. If you have a computer with a small amount of ram and/or slower
CPU, I recommended a swap partition of no more than 2 gigs.
Example:
swap (sda1)
/ (root sda2)
/home (sda3)
There have been occasions when it became necessary to reinstall the OS (Ex.
crackmonkey decided to make "room" by logging in a root and deleting stuff).
Having the sep /home saved all of the user data and settings etc.
My setup I actually have sep hard drives for things
like /home /media /software etc.
However, if this is a test machine, I wouldn't bother. No point to it.
Kate