When I was testing some code snippets from Stack Overflow, I realized that I haven't any man-pages for GCC on my Debian System. But when I try to get them from Debian's repositories it outputs E: unable to fetch gcc-doc4.3
.
How can I get that package, and why this package isn't include with gcc altogether?.
Best Answer
Get gcc-doc package
In order to be able to fetch this packages with the
apt-get install
command we need to edit oursources.list
file to include bothcontrib
andnon-free
repositories.For example, here's my
/etc/apt/sources.list
file:Note: in case someone doesn't know it yet, in normal circumstances this file can only be edited as root.
or you can use an editor which is more newbie-friendly, like Nano
or a GUI editor, like Gedit
Be sure to add both
contrib
andnon-free
resositories. In my case,gcc-4.9-doc all
was in thenon-free
repo, whilegcc-doc amd64
was located atcontrib
repo.Why is gcc-doc non-free?
Because of issues between the GFDL (GNU Free Documentation License) and the DFSG (Debian Free Software Guidelines), yup, more blessed legalities.
Here's two core incompatibilities:
GFDL licensed documents are prohibited to be used on any project that uses DRM (Digital Rights Management), Debian don't allow such restrictive behavior in software/documents to consider them free.
Documents licenced as GFDL are allowed to contain invariant sections. To Debian, that is simply not an example of free content, whether this content is software or documentation.
For more, read this Position Statement.