rpm question

Paul Johnson pauljohn32 at gmail.com
Wed Dec 17 04:55:35 UTC 2008

On Tue, Dec 16, 2008 at 8:00 PM, John Frazier <jfrazierjr9 at hotmail.com> wrote:
> I would like to build an rpm that does nothing but install other rpms. My
> idea is that I can use this rpm to manage and track groups of rpms that have
> been installed on our systems. Is this just crazy or is it feasible. I look
> forward to hearing from you any alternate ideas would be greatly appreciated
> as well.
> Best Regards,
> John Frazier

This is easy.  In the Spec file, you add require statements for every
RPM you want installed. I paste in below a spec file I use to build an
rpm for our computer lab. I know I have one somewhere that just has
the requires code, but this one installs some files and also requires
lots of packages.  But you can just cut out the installation of files.
  As long as the RPMs you want are in a yum server somewhere, then
installing this with yum will bring in all the required ones.

#### FOr Fedora systems, Not Scientific Linux

Name:           kups-meta
Url:            http://pj.freefaculty.org/
License:        GPL
Group:          User Interface/Desktops
Version:        1.9
Release:        1%{?dist}

Summary:        KU lab meta package
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0:        http://pj.freefaculty.org/%{version}/mountKUShare
Source1:        http://pj.freefaculty.org/%{version}/unmountKUShare
Source2:        http://pj.freefaculty.org/%{version}/R-update.sh
Source3:        http://pj.freefaculty.org/%{version}/R_installFaves-2.R
Source4:        http://pj.freefaculty.org/%{version}/kups.repo

Requires:       R, emacs, emacs-ess, emacs-ess-kups, RealPlayer
Requires:       wide-backgrounds, WindowMaker
Requires:       openafs-client
Requires:       mlterm, jdk, java-1.5.0-sun-compat, flash-plugin,
Requires:       thunderbird
Requires:       abiword, aiksaurus, atlas-devel, audacious
Requires:       aumix, blas, cabextract, convmv
Requires:       emacs-auctex
Requires:       fdupes,
Requires:       fuse, fuse-sshfs, gc, gnumeric, goffice, gqview
Requires:       graphviz-devel, grip, gv, hdf5-devel, hevea, id3lib, k3b-extras
Requires:       lesstif, libgda, libid3tag, libpng10-devel, libtar, libtidy
Requires:       loudmouth, lyx, lyx-qt, most, mousepad, nautilus-open-terminal
Requires:       nedit, octave, pan,  pstoedit
Requires:       pybliographer, QuantLib-devel, recode, scite, scribus,
skencil, taglib
Requires:       tidy, tkcvs, inkscape
Requires:       unison, vpnc, wine
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

A meta package for the KU lab systems.

rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/local/bin
mkdir -p %{buildroot}/etc/cron.daily
install -m 755 %{SOURCE0} $RPM_BUILD_ROOT/usr/local/bin/mountKUShare

install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/local/bin/unmountKUShare
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/R-update.sh
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/usr/loca/bin/R_installFaves-2.R

mkdir -p %{buildroot}/etc/yum.repos.d

install -m 755 %{SOURCE4} $RPM_BUILD_ROOT/etc/yum.repos.d/kups.repo



* Fri Dec 1 2006 Paul Johnson <pauljohn at ku.edu> 0.1
- Create

Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

More information about the Rpm-list mailing list