Linux Lite Forums

Full Version: Survey: How many space needs "/opt" in fact?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've collected data from different linux installations, and I've asked some linux specialists for their opinion, how many hard disk space is needed for the directory or partition of "/opt".

Because there are some very different statements on what is necessary, I would like to collect some data from the real world. What is going on in fact, not in theory?

Therefore I request everybody to check what's going on at his own linux system. You only have to put the following command in your terminal and post the result here.

Code:
sudo du -h -d 1 /opt

On my current linux installation it looks like this:

Code:
johnd@linux-system:~$ sudo du -h -d 1 /opt
21M     /opt/sublime_text
16K     /opt/lost+found
221M    /opt/pt
241M    /opt
johnd@linux-system:~$

If you like to say, which programs are installed under /opt, I would apprechiate it.

(I'm sure, I've some misspellings. Sorry for this!)

Regards
JohnD
Here you go.  Only two programs I have installed under /opt are the two shown in output (both are web browsers).
Code:
bill@HP-8000-Elite ~ $ sudo du -h -d1 /opt
[sudo] password for bill:
171M    /opt/vivaldi
188M    /opt/slimjet
358M    /opt
... BUMP ...


Anybody else want to add to this for the OP?
Slackware uses the /opt directory more than Debian based systems. When building the SuperGamer series I used all of the directories to put games into and added 2 more and modified the scripts to build. The live scripts built each folder into a squash file then into an iso. Each folder had a 4gb limit so that was the reason to add a couple of different directories to include all of the games. Even Slackware fully installed would probably use less than 1gb. I haven't kept up with KDE, but it might use the /opt folder more as it used to with version 3.2. Sorry just aged myself.
Here's what I get:


Code:
du: cannot access '/opt': No such file or directory


Y'all are about to make me think something's wrong with my 'puter!

Quote:Y'all are about to make me think something's wrong with my 'puter!
Maybe you accidentally made a typo with du command.  Run this in terminal to list files/directories under root:
Code:
ls /


If you see "opt" in the output of that, then you must have typed-in du command incorrectly before.  Try again by just copying/pasting this:
Code:
sudo du -h -d1 /opt


If you don't see "opt" in output, that's a surprise to me -- I thought it was always a standard directory under root even if nothing is in it.
Hello JohnD,

Code:
:~$ sudo du -h -d 1 /opt
[sudo] password for bitsnpcs:
3.0M    /opt/youtube-to-mp3
3.0M    /opt

Only one program installed under opt, shown above.
No sir, nothing in /opt!  var/opt is empty, etc/opt is empty.  There are folders, but no files in them.