带有自定义包的CentOS 5.8 ISO [英] CentOS 5.8 ISO with custom packages

查看:295
本文介绍了带有自定义包的CentOS 5.8 ISO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用自定义包创建CentOS 5.8 .iso映像?我必须创建一个只有我们的生产系统所需的软件包。我已经把所有的rpms及其依赖解决在一个文件夹中。我已经使用createrepo从该文件夹成功创建了一个存储库。

How can I create a CentOS 5.8 .iso image with custom packages? I have to create an iso with only the packages needed for our production system. I already have all the rpms with their dependencies resolved in a folder. I have successfully created a repository from that folder with createrepo.

根据我的理解,我应该将rpm文件放在CentOS文件夹中,repodata文件夹应该包含软件包管理器所需的元数据。我不知道我是否应该修改现有的comps.xml文件或创建一个新的,或者使用哪个结构,因为这只是默认CentOS安装磁盘上包含的软件包的一个子集。

As I understand it, I should put the rpm files in the CentOS folder, and repodata folder should contain the metadata needed for a package manager. I don't know if I should modify the existing comps.xml file or create a new one, or which structure to use, since this is only a subset of packages contained on a default CentOS installation disk.

我知道从默认的iso中删除包可能是徒劳的,但这是我的工作订单,没有太多的事要做。

I know it is probably futile to delete packages from the default iso, but that is my work order and there's not much to be done there. (There are also some packages not available in the default iso)

非常感谢

推荐答案

我觉得你的问题对于这样宽度的主题有点模糊,但我会尽力提供答案。我认为您应该使用 Kickstart 执行此任务,因为它会导致更快乐的客户,无论他们是内部还是外部,并更容易管理,你的未来,当事情得到更新。首先,请查看 CentOS文档,如果你已经这么远,只是要求删除包,请查看部分的文档,它谈到指定您的包和删除那些你不想要的。

I feel as though your question is a bit vague for a topic with this sort of breadth but I'll do my best to offer an answer. I think you should use Kickstart for this task as it's going to result in a much happier customer whether they're internal or external, and easier management for you going forward when things get updated. Start by reviewing the CentOS documentation, if you are already this far and just asking about removing packages, check out this section of the docs, it talks about specifying your packages and removing the ones you don't want.

如果你只有一种风格的生产机器,那么这应该照顾它。如果您有多个不同的配置,建议您查看配置管理工具,例如 Ansible Puppet ,或 Salt 。这将允许你通过Kickstart提供一个基本的图像,然后根据消费系统的用户的需要生成该图像。

If you only have the one style of production machine, then this should take care of it. if you have multiple different configurations I'd suggest taking a look at a configuration management tool such as Ansible, Puppet, or Salt. This would allow you to provide a base image via Kickstart, then build off of that image depending on the needs of whoever is consuming the system.

这篇关于带有自定义包的CentOS 5.8 ISO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆