Per FHS, /opt/bin
, /opt/lib
, /opt/info
, /opt/include
, /opt/doc
, and /opt/man
are there for the administrator's convenience. For instance, you might have /opt/jdk
and /opt/LibreOffice
holding your jdk and office suite, but rather than add a new element to $PATH
, ld.so.conf
, etc. every time you add another package, you can just symlink the binaries to /opt/bin
, the libs to /opt/lib
, etc.
Basically, you should put the binary in /opt/foo/bin
and, at your discretion, symlink the binary into /opt/bin
FHS does not specify any particular organization within /opt/package
, but the widely accepted practice is to make a bin
and lib
directory, and possibly doc
, man
, etc. as needed.
As a side note: if you are writing to /opt/foo
FHS also clears you to write to /etc/opt/foo
and /var/opt/foo
.
Best Answer
Ubuntu / Debian etc. using apt-get:
- Source.
However with Red Hat / CentOS using yum the
update
command will ask you if you want to apply the updates it finds.grabs a list of all available updates and asks you if you would like to apply them. Like this:
When your friend refers to update as "small changes" and upgrade as "big changes" he actually means the difference between upgrade and dist-upgrade.
From the apt-get manual: