#272 docker base image: don't install docs by default
Merged 6 years ago by maxamillion. Opened 6 years ago by ttomecek.
ttomecek/fedora-kickstarts fix-atomic-wg-308  into  master

file modified
+3
@@ -18,6 +18,9 @@ 

  rm -rf /var/cache/dnf/*

  rm -rf /tmp/*

  

+ # https://pagure.io/atomic-wg/issue/308

+ printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf

+ 

  #Mask mount units and getty service so that we don't get login prompt

  systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service

  

Fixes https://pagure.io/atomic-wg/issue/308

This is how I made sure it works (fedora:26 container):

[root@0af75f97e4b2 /]# printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf
[root@0af75f97e4b2 /]# dnf install tmux
Fedora 26 - x86_64 - Updates                                                                                                                  1.8 MB/s | 8.7 MB     00:04
Fedora 26 - x86_64                                                                                                                            9.9 MB/s |  53 MB     00:05
Last metadata expiration check: 0:00:02 ago on Tue Aug  1 11:04:37 2017.
Dependencies resolved.
==============================================================================================================================================================================
 Package                                  Arch                                   Version                                        Repository                               Size
==============================================================================================================================================================================
Installing:
 tmux                                     x86_64                                 2.5-1.fc26                                     updates                                 296 k
Installing dependencies:
 libevent                                 x86_64                                 2.0.22-3.fc26                                  fedora                                  220 k

Transaction Summary
==============================================================================================================================================================================
Install  2 Packages

Total download size: 516 k
Installed size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libevent-2.0.22-3.fc26.x86_64.rpm                                                                                                      1.2 MB/s | 220 kB     00:00
(2/2): tmux-2.5-1.fc26.x86_64.rpm                                                                                                             1.5 MB/s | 296 kB     00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                         207 kB/s | 516 kB     00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                      1/1
  Installing       : libevent-2.0.22-3.fc26.x86_64                                                                                                                        1/2
  Running scriptlet: libevent-2.0.22-3.fc26.x86_64                                                                                                                        1/2
  Installing       : tmux-2.5-1.fc26.x86_64                                                                                                                               2/2
  Running scriptlet: tmux-2.5-1.fc26.x86_64                                                                                                                               2/2
  Verifying        : tmux-2.5-1.fc26.x86_64                                                                                                                               1/2
  Verifying        : libevent-2.0.22-3.fc26.x86_64                                                                                                                        2/2

Installed:
  tmux.x86_64 2.5-1.fc26                                                             libevent.x86_64 2.0.22-3.fc26

Complete!

[root@0af75f97e4b2 /]# ls -lha `rpm -qd tmux`
ls: cannot access '/usr/share/doc/tmux/CHANGES': No such file or directory
ls: cannot access '/usr/share/doc/tmux/FAQ': No such file or directory
ls: cannot access '/usr/share/doc/tmux/TODO': No such file or directory
ls: cannot access '/usr/share/man/man1/tmux.1.gz': No such file or directory

As you can see, no documentation files were installed.

@ttomecek - LGTM - when this gets merged you'll need to make a PR for the f26 branch as well

@maxamillion PTAL

Pull-Request has been merged by maxamillion

6 years ago
Metadata