Discussion:
Why do Google programs (Earth and Chrome) install stuff into /opt?
(too old to reply)
Ant
2015-02-27 22:27:38 UTC
Permalink
Hi.

Why does Google's Debian packaged programs need to use /opt? I don't
have enough free SSD space for both Chrome and Earth in there:

# dpkg --install google-earth-stable_current_amd64.deb
(Reading database ... 253951 files and directories currently installed.)
Preparing to replace google-earth-stable 6.0.3.2197-r0 (using
google-earth-stable_current_amd64.deb) ...
Unpacking replacement google-earth-stable ...
dpkg: error processing google-earth-stable_current_amd64.deb (--install):
cannot copy extracted data for
'./opt/google/earth/free/libQtWebKit.so.4' to
'/opt/google/earth/free/libQtWebKit.so.4.dpkg-new': failed to write (No
space left on device)
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for menu ...
Errors were encountered while processing:
google-earth-stable_current_amd64.deb

# df
Filesystem 1K-blocks
Used Available Use% Mounted on
rootfs 960504 811124 100588 89% /
udev 10240 0 10240 0% /dev
tmpfs 206056 3888 202168 2% /run
/dev/disk/by-uuid/242d81f2-8a0d-48e1-a144-22ab4d2b9407 960504
811124 100588 89% /
tmpfs 5120 8 5112 1% /run/lock
tmpfs 1193200 80 1193120 1% /run/shm
/dev/sda9 50013916
2291560 45181764 5% /home
/dev/sda5 960504
17668 894044 2% /tmp
/dev/sda8 49982172
6576076 40867088 14% /usr
/dev/sda6 4804736
1854516 2706152 41% /var

Is there a way to not to put stuff there? None of the non-Google
programs use /opt. Google is weird. :(

Thank you in advance. :)
--
"Yeah, what's left of it. I was in the militia -- national guard...
That's good! Wasn't any war any more than there's war between men and
ants." --stranger; "And we're eat-able ants. I found that out... What
will they do with us?" --Pierson from H.G. Wells' The War of the Worlds
/\___/\ Ant(Dude) @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.
Richard Kettlewell
2015-02-27 22:45:56 UTC
Permalink
Post by Ant
Why does Google's Debian packaged programs need to use /opt? I don't
Possibly because they read
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.pdf s3.13, but it’s
a common approach (predating Linux by some years).

If you’re short of space on / then I suggest making a symlink from /opt
to somewhere you do have more space.
--
http://www.greenend.org.uk/rjk/
Ant
2015-02-28 04:24:17 UTC
Permalink
Post by Richard Kettlewell
Post by Ant
Why does Google's Debian packaged programs need to use /opt? I don't
Possibly because they read
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.pdf s3.13, but it’s
a common approach (predating Linux by some years).
If you’re short of space on / then I suggest making a symlink from /opt
to somewhere you do have more space.
Good idea. Do other companies do this too beside Google? It is weird
that only Google did this.
--
"As a thinker and planner, the ant is the equal of any savage race of
men; as a self-educated specialist in several arts she is the superior
of any savage race of men; and in one or two high mental qualities she
is above the reach of any man..." --Mark Twain
/\___/\ Ant(Dude) @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
A song (i/wa)s playing on this computer: Dee Robert - Seperate Ways
(Dee's Miracle Mix)
Richard Kettlewell
2015-02-28 08:26:55 UTC
Permalink
Post by Ant
Post by Richard Kettlewell
Post by Ant
Why does Google's Debian packaged programs need to use /opt? I don't
Possibly because they read
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.pdf s3.13, but it’s
a common approach (predating Linux by some years).
If you’re short of space on / then I suggest making a symlink from /opt
to somewhere you do have more space.
Good idea. Do other companies do this too beside Google? It is weird
that only Google did this.
Sun and IBM spring to mind, the software for the products that pay my
bills also lives in /opt on Unix platforms.
--
http://www.greenend.org.uk/rjk/
Ant
2015-03-01 02:15:01 UTC
Permalink
Post by Richard Kettlewell
Post by Ant
Post by Richard Kettlewell
Post by Ant
Why does Google's Debian packaged programs need to use /opt? I don't
Possibly because they read
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.pdf s3.13, but it’s
a common approach (predating Linux by some years).
If you’re short of space on / then I suggest making a symlink from /opt
to somewhere you do have more space.
Good idea. Do other companies do this too beside Google? It is weird
that only Google did this.
Sun and IBM spring to mind, the software for the products that pay my
bills also lives in /opt on Unix platforms.
Unix, eh? They do that Unix way in Linux/Debian. :/
--
"As I watch the busy ants on the trail and around the ant pile, I am
impressed by the fact that they are doers and not just believers." --CR 1967
/\___/\ Ant(Dude) @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.
Richard Kettlewell
2015-03-01 09:10:10 UTC
Permalink
Post by Ant
Post by Richard Kettlewell
Post by Ant
Post by Richard Kettlewell
If you’re short of space on / then I suggest making a symlink from /opt
to somewhere you do have more space.
Good idea. Do other companies do this too beside Google? It is weird
that only Google did this.
Sun and IBM spring to mind, the software for the products that pay my
bills also lives in /opt on Unix platforms.
Unix, eh? They do that Unix way in Linux/Debian. :/
I’m not sure what you’re getting at. Linux is a Unix platform.
--
http://www.greenend.org.uk/rjk/
Loading...