Ask Your Question
2

Removing documentation

asked 2015-10-07 07:28:53 -0500

akiross gravatar image

On my drive, texlive documentation and system documentation takes way too much space.

Is there a clean way to remove them?

Is there a dnf (yum) setting to specify that I do not want documentation?

Actually, I use the man pages for CLI commands, but for many other packages, I look online, and not on installed documentation.

Thanks in advance!

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
3

answered 2015-10-08 23:36:41 -0500

Like yum before, dnf can pass transaction flags when invoking rpm (although this is not documented, user beware!)

This is done with the *tsflags" option. There would be two approaches:

  • Add tsflags=nodocs to the [main] section of /etc/dnf/dnf.conf. To incidentally install packages with documentation, append --setopt='tsflags=' .
  • Turn off documentation installs explicitly on the comand line, only when you need to. For example, dnf install supernova --setopt='tsflags=nodocs'.

To add or remove pacakged documentation at any time, you can reinstall a package with the flags set accordingly. If you set the flags globally in dnf.conf but decided you really did want manpages for core utilities, you might do dnf reinstall coreutils --setopt='tsflags=' to get them back.

Absence of documentation should never affect the function of a package; if you find otherwise, please file a bug against that package.

edit flag offensive delete link more
3

answered 2015-10-08 19:03:18 -0500

skytux gravatar image

You could try to identify documentation packages with the following command:

$ rpm -qa | grep "\-doc\-"

But be careful with which packages you remove!

HTH,

Germán.

edit flag offensive delete link more
3

answered 2015-10-08 18:24:46 -0500

mclmmc gravatar image

Look under /usr/share/doc

du -hs *

identify the package owner:

rpm -qif /usr/share/doc/dirname/filename

remove the unneeded package.

PS. be careful, not all documentation is in separate packages

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-10-07 07:28:53 -0500

Seen: 992 times

Last updated: Oct 08 '15