[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: starting Fedora Server SIG



Once upon a time, John Ellson <john ellson comcast net> said:
> Are there guidelines somewhere on what packages should not be pulled in 
> on a server?

Well, I guess start with a very minimal install and see what is there.
With rawhide, it appears impossible to install a kernel without pulling
in X libraries (because of plymouth), so I guess the base X libraries
can be considered "core" now.

Here's a script that lets you install packages and their dependencies
into a subdirectory to see what gets pulled in.  If you just install
kernel and grub, you get 116 packages, including python, core X
libraries, and freetype.  Add in yum and you get another 29 packages.

-- 
Chris Adams <cmadams hiwaay net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


#!/bin/bash

# "Install" a specified set of packages (plus dependencies) in a
# subdirectory using yum.
# The subdirectory is the first argument (must not already exist) and
# everything else is taken as a list of packages to install

if (($(id -u) != 0)); then
	echo "Must run as root" 1>&2
	exit 1
fi

BASE="$1"
shift
if [ -z "$BASE" ]; then
	echo "Must supply top-level directory" 1>&2
	exit 1
fi
if [ -e "$BASE" ]; then
	echo "$BASE exists" 1>&2
	exit 1
fi
if [ -z "$*" ]; then
	echo "Must supply package(s) to install" 1>&1
	exit 1
fi

# make the base fully-specified
mkdir "$BASE"
BASE="$(cd "$BASE"; pwd)"

# rpm init
mkdir -p "$BASE/var/lib/rpm"
rpm --initdb --dbpath "$BASE/var/lib/rpm"

# filesystem setup (keeps kernel %post happy)
mkdir -p "$BASE/etc"
touch "$BASE/etc/fstab"

# install and clean up
yum -y --installroot="$BASE" --disablerepo="*" --enablerepo=rawhide \
    install $@
yum --installroot="$BASE" --disablerepo="*" --enablerepo=rawhide clean all


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]