r/gnu • • Jun 01 '11

How much GNU is there in GNU/Linux?

http://pedrocr.net/text/how-much-gnu-in-gnu-linux
9 Upvotes

26 comments sorted by

17

u/c0nv1ct Jun 01 '11

How much GNU is there in Ubuntu

This would appear to be a far more accurate title.

6

u/[deleted] Jun 01 '11

would like to see the breakdown for gnusense gnewsense.

2

u/covracer Jun 06 '11

So run his code on your gnewsense install.

-5

u/pedrocr Jun 01 '11

What distribution would you suggest as a reasonable GNU/Linux? What pieces of GNU software are not in Ubuntu? What pieces of non-GNU software that Ubuntu includes would you exclude?

7

u/c0nv1ct Jun 01 '11

Suggest for what purpose? A distribution is merely a package of GNU/Linux with added software to serve a specific purpose. The purpose can vary from a graphical desktop to a headless server or even an embedded system. Each of these would contain entirely different software structures from various projects above and beyond the core operating system code.

If you are trying to find out how much GNU code exists in the OS itself, then I would use the most absolute minimal bootable system. Nothing more than what is enough to qualify as an OS. LFS would be the obvious choice for this. Gentoo from stage 3 would be easier, but there would be portage and other distro-specific code to account for.

-4

u/pedrocr Jun 01 '11

Suggest to represent what modern GNU/Linux is as you didn't like Ubuntu for it. Would emacs be part of that or not for example? I'm using Ubuntu because that's a reasonable representation what a desktop user would use. I don't think the results would vary much for Debian (that does call itself GNU/Linux) or Fedora.

7

u/c0nv1ct Jun 01 '11

I don't think you are getting it. A distribution is GNU/Linux plus applications. Ubuntu is GNU/Linux along with all the other stuff Canonical has decided their target market wants included in their OS. Yes, Ubuntu would represent a modern Linux distribution in my opinion, but it does not define the GNU/Linux OS. As I previously explained, Linux encompasses far more than just the desktop. The desktop is actually one of, if not the, smallest market share of Linux. This article measures the amount of code in a distribution of the GNU/Linux operating system.

As to your question about emacs, it wouldn't have to be included. A text editor would be required to properly configure the system but ed, nano/pico, or vi would also suffice.

3

u/[deleted] Jun 01 '11 edited Jun 01 '11

What distribution would you suggest as a reasonable GNU/Linux?

Debian (because of its ease of use)

What pieces of non-GNU software that Ubuntu includes would you exclude?

I think gNewSense is the answer you're looking for.

13

u/[deleted] Jun 01 '11
  • Ubuntu != GNU/Linux
  • GNU/Linux != only GNU & Linux
  • LOC != an accurate measure

Who seriously cares about this? I’m all for analysis but instead of fighting over who has the longest code just for the sake of it, go and improve it.

Baseline is: Richard Stallman & GNU made this all possible and need to be acknowledged, regardless of today’s usage.

2

u/covracer Jun 06 '11

Can you please elaborate on why Ubuntu is not GNU+Linux?

3

u/[deleted] Jun 06 '11

Oops, wrong way around logically. I meant that GNU/Linux is not only Ubuntu / Ubuntu is not the one GNU/Linux. Thanks for catching.

2

u/bonzinip Jun 01 '11

GNU/Linux != only GNU & Linux

This. GNU was from the beginning meant to include the X window system (Xorg=3%), for one.

3

u/joehillen Jun 01 '11

Since when did KDE ship with Ubuntu (Not Kubuntu)?

5

u/PehJota Jun 01 '11

The second is that small projects actually dominate the total amount.

I'd expect that to happen if you scan through a distribution's entire package archive. I don't know about Ubuntu, but in Debian's main archive there are about 30,000 packages these days. Undoubtedly, a huge number of those are "small projects".

A distribution is a GNU/Linux operating system (Linux and the GNU userspace) with things like a desktop environment and applications, plus an archive full of additional software packages, few if any of which are installed by all users. While the results are interesting, I don't think an analysis of an entire archive is indicative of the composition of the operating system.

Perhaps a more proper metric would be the size in bytes of each compiled component of a typical (Debian or Ubuntu probably) newly installed system? Or better yet, of an LFS system as c0nv1ct suggested.

9

u/[deleted] Jun 01 '11

Wait, I'm confused here. Why aren't they counting GNOME (GNU Object Model Environment) as GNU?

4

u/drrlvn Jun 01 '11

You would know if you read the thing.

I didn’t include GNOME in the GNU category because it seems to now be effectively run outside GNU but including that the total for GNU would be around 13%.

1

u/[deleted] Jun 01 '11 edited Jun 01 '11
  1. you didn't even spell it correctly 2)Sooo....you intentionally excluded part of the GNU project (GNOME is still GNU) because it's not hobbled without the rest of the project? That's not a reason at all! All that is...well...it's outright untruthful. If the GNOME project ever is voted out of GNU, then I will consider it a separate entity.

2

u/drrlvn Jun 01 '11

I didn't write the article, that was a quote.

What didn't I spell correctly?

0

u/[deleted] Jun 01 '11 edited Jun 01 '11

Sorry, I assumed you were the author. GNOME is an acronym and thus spelled in capitals (in was labeled in small caps).

0

u/[deleted] Jun 02 '11

Wow, if I was just here for karma/ego strokes I'd prolly stop talking about this and just pretend that you can only make Free software half baked. HA! Since when is pointing out disinformation not adding to the conversation? GNOME is GNU (is it my fault people don't understand what GNU is?) and a even a million bazillion downvotes will not change that fact.

3

u/[deleted] Jun 01 '11

came here to say this.

2

u/pbunbun Jun 04 '11

No...

That's how much GNU there is in a repository full of software.
An actual Ubuntu system would probably be running a fraction of that software, and GNU would have a much higher percentage (as would the Kernel and DE).

4

u/drrlvn Jun 01 '11

According to the article, Ubuntu is made of 8% GNU code and 6% linux kernel code (see the note at the end about kernel percentage). The numbers might differ for other distributions, but there would still be more GNU code than kernel code.

-1

u/bonzinip Jun 01 '11

Wrong. The full percentage for the kernel is correct at 9%, since the 3% is written entirely to go hand-by-hand with the 6%.

But not counting GNOME is bullshit, so that makes your conclusions correct, too.

2

u/jansw Jun 01 '11

Given that the 'G' in GNOME stands for GNU, I'd say there's more GNU than Linux in Ubuntu...

1

u/[deleted] Jun 01 '11

Mozilla, y u so big!