Fedora minimal installations

Harald Hoyer harald.hoyer at gmail.com
Wed Jul 29 17:47:19 UTC 2015


On 29.07.2015 16:09, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, Jul 29, 2015 at 03:42:28PM +0200, Harald Hoyer wrote:
>> In order to define the Base WG core package group and minimize minimal
>> installations for e.g. cloud images and the atomic spin, I created some
>> dependency lists:
>>
>> There are so many definitions of minimum sets:
>>
>> systemd: container boot
>> systemd + bash + login: container boot with login
>> systemd + kernel + bootloader + dracut: machine boot
>> systemd + ... + sshd + firewalld: network minimal
>>
>> Here is a little script to generate the filelist (which apparently is extended
>> by dnf and kickstart with other default packages):
>> <https://harald.fedorapeople.org/pkgset/pkgset.sh>
>>
>> So, if we start with systemd, then we'll get 112 packages at least for rawhide.
>> systemd (112 pkgs):
>> <https://harald.fedorapeople.org/pkgset/f24-systemd-requires.txt>
>>
>> systemd+kernel+grub2+grub2-efi+grubby+dracut (142 pkgs):
>> <https://harald.fedorapeople.org/pkgset/f24-systemd-kernel-requires.txt>
>>
>> systemd+kernel+grub2+grub2-efi+grubby+dracut+dnf (177 pkgs):
>> https://harald.fedorapeople.org/pkgset/f24-systemd-kernel-dnf-requires.txt
>>
>>
>> For a visualization I created some graphs for the systemd only dependencies:
>>
>> <https://harald.fedorapeople.org/pkgset/systemd-all.svg>
>>
>> and a reduced graph, which only displays one dep:
>>
>> <https://harald.fedorapeople.org/pkgset/systemd.svg>
>>
>>
>> A couple of strange deps:
>> - libsemanage requires python
>>   (filed as <https://bugzilla.redhat.com/show_bug.cgi?id=1248002>)
>> - emacs-filesystem - do we really need that?
> That's a package with three directories... Guidelines require this dependency.
> 
>> - info - do we really require that for every package, that ships info pages?
> This could be converted to a scheme where info (install-info precisely speaking)
> is not required, and is only called if it is present. And the info package
> would have to install all pre-exisiting info pages upon installation.
> (Something like this is done with gtk-update-icon-cache [1].)
> info.rpm is rather small, so I doubt that this is worth the effort.
> 
> [1] https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache

and with %transfiletriggerin this could even be automated from within the info
package. <http://rpm.org/wiki/FileTriggers>

%transfiletriggerin -- %{_infodir}
while read -r file || [ -n "$line" ]; do
    /sbin/install-info "$file" %{_infodir}/dir || :
done

%transfiletriggerpostun -- %{_infodir}
while read -r file || [ -n "$line" ]; do
    /sbin/install-info --delete "$file" %{_infodir}/dir || :
done


And we could just drop all the %post and %preun from the other zillion spec files.



More information about the devel mailing list