RedHat是否有类似pbuilder的环境?


9

我想知道是否有像Debian's这样的实用程序pbuilder,可以使用干净的环境(chroot)在RedHat上构建RPM软件包。

我发现mach支持这样的事情,但是在Debian环境下,并且不支持RHEL。我需要在RHEL 5.5上运行的软件。

Answers:


6

模拟是您要寻找的。它基于Mach并包装在EPEL中。我经常使用它来为RHEL和Fedora构建RPM软件包。



0

mach通过适当的配置文件支持RHEL,例如:

V  = '5Server' # distro version
VS = '5'       # 'short' version
A  = 'i386'    # architecture
AS = ''        # 'short' version of arch
DIST = 'rhel-%s-%s' % (V, A)

### RHEL flavours

yumsources[DIST] = {
  'os':               rhelyum + '/%s/%s/os'                         % (V, A),
  'updates':          rhelyum + '/%s/%s/updates'                    % (V, A),
}

# RHEL
packages['%s' % DIST] = {
  'dir':      DIST,
  'minimal':  'bash glibc redhat-release',
  'base':     'coreutils findutils openssh-server',
  'build':    'dev redhat-rpm-config rpm-build make gcc gcc-c++ tar gzip ' +
              'patch unzip bzip2 diffutils cpio elfutils which',
}
sourceslist['%s' % DIST] = {
  DIST: ('os', 'updates', )
}
config['%s' % DIST] = {
  'runuser': '/sbin/runuser',
  'macros':  { 'dist': '.el' + VS, 'rhel': VS, 'redhat': VS},
}
aliases['%s' % DIST] = ('el' + VS + AS, )

0

如果您想全面发展,可以设置Koji,它使用Mock(来自cdgagne的答案)作为其组成部分之一。Koji是Fedora的基础,可以从其网站免费下载。Afaik,Fedora在RHEL上运行Koji,因此适合您的目的。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.