Where is gcc-doc package?

Hi, i have been trying to install the gcc docs using sudo apt install gcc-doc but i cannot find the package in PureOS repos!

Any idea why is it missing ?

This is the /etc/apt/sources.list:

# Main package repository for PureOS
deb https://repo.pureos.net/pureos byzantium main

# Important security updates
deb https://repo.pureos.net/pureos byzantium-security main

# Other updates for resolving non-security issues
deb https://repo.pureos.net/pureos byzantium-updates main

apt info gcc-doc

Package: gcc-doc
Version: 5:10.1.0-1
Priority: optional
Section: contrib/doc

Depends: gcc-10-doc (>= 10.1.0-1~)
Breaks: g++ (<< 4:4.1.1-7), gcc (<< 4:4.1.1-7)
Replaces: g++ (<< 4:4.1.1-7), gcc (<< 4:4.1.1-7)
Homepage: http://gcc.gnu.org/

Description: documentation for the GNU compilers (gcc, gobjc, g++)
 This is the dependency package that should install manual pages
 and documentation for Debian default version of GNU compilers.
 This documentation is available from non-free part of Debian archive.

As you see related information above it is part of contrib repo (not under PureOS by itself).

EDIT: https://gcc.gnu.org/install/index.html

1 Like

But how is it even non-free, is the gcc compiler itself free and its docs non free !?

I simply do not know why (no clue about).

gcc docs are released under the GFDL license - and some people (including the Debian project) consider GFDL a non-free license. See https://en.wikipedia.org/wiki/GNU_Free_Documentation_License#Criticism for some details. This is the reason Debian packages gcc-doc in non-free, and pureos only includes the free part of Debian (the main section, and not the non-free section).


It is actually in the middle, in contrib part of the Debian repository (yet still not helping much here in this thread). Thanks!

Well, if you look at the contrib package in Debian, you can notice that it is just a metapackage


and depends on gcc-11-doc, which is located in non-free. (free packages that have dependences on non-free cannot still be located in main, but they are located in contrib).

A metapackage can be considered a package with only dependencies, but no programs or data of it’s own.

1 Like

Perhaps adding contrib your sources.list helps, if you decide to go with by yourself adjusted version of (remove or block this line afterwards):

It is very late for me but now try only:

@Usr1, please do not execute or even think to execute sudo apt upgrade, not at all and add ## in front of deb https://ftp.debian.org/debian/ ... line or just delete it, after above successful (hopefully)!

Yea i know this can be done that way, i have added the debian repos before and i messed everything up, i had to reinstall PureOS. So i think i am gonna stick with just PureOS repos. gcc-doc is not that important, i can view the docs online afterall.

1 Like