如何创建ISO中包含RPM文件的Almalinux ISO,以便安装程序不需要Internet连接即可下载软件包?

发布于 2025-01-26 09:25:00 字数 981 浏览 3 评论 0原文

我正在尝试从Almalinux创建一个ISO,该ISO将具有GUI安装程序,当我在安装屏幕中选择特定的安装环境时,ISO将拥有所有RPM文件,软件包和依赖项。

最终结果应该是ISO,当我将其插入没有Internet连接的新计算机上时,我将能够从ISO启动,启动GUI安装,选择环境,例如 “ Workstation”或“ KDE”,然后安装程序将ISO中的相应软件包安装到该计算机中,而不是从Internet中安装。

我找到了使用Kickstart文件的指南,我对其进行了更新,并且适用于GUI安装,但是从Internet下载软件包(从某些Almalinux软件包管理器服务器)下载,ISO本身不包含所需的软件包。

I used this guide: https://onezeroone.dev/customizing-the-almalinux-安装程序媒体/ 我在此Kickstart文件中进行了一些更改: https://////onezeroone.dev/expample/example-dev/example--almalinux-almalinux-almalinux-kickstart- /

我还尝试了repo = cdromrepo -name = dvd -baseurl = file = file:// packages ,但它不起作用,这是预期的

在CentOS 7上,我使用Pungi为此,检查了所有所需的软件包和依赖项,并且将它们包含在最终ISO中,但是在Almalinux上,这不起作用。您能提供一些帮助吗?

谢谢你!

I am trying to create an ISO from AlmaLinux, which will have the gui installer and this ISO would have all the rpm files, packages and dependencies needed when I select a specific installation environment in the installation screen.

The end result should be an ISO, that when I insert it on a new machine that does not have internet connection, I would be able to boot from the ISO, start the gui installation, select the environment, e.g.
"Workstation" or "KDE" and then the installer would install the corresponding packages from the ISO into that machine, not from the internet.

I have found a guide that uses a Kickstart file, I updated it and it works for a gui installation but the packages are downloaded from the internet (from some AlmaLinux package manager server), the required packages are not included in the ISO itself.

I used this guide: https://onezeroone.dev/customizing-the-almalinux-installer-media/
and I did some changes in this Kickstart file: https://onezeroone.dev/example-almalinux-kickstart/

I also tried repo=cdrom or repo --name=dvd --baseurl=file://Packages but it does not work, which is expected

On CentOS 7 I used Pungi for this, which checks for all packages and dependencies needed and it includes them in the final ISO, but on AlmaLinux this does not work. Could you please provide some help?

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘逸的'云 2025-02-02 09:25:00

我正在尝试类似的东西,尽管我还没有达到该过程的那个阶段,但我相信您缺少的是更新Comps.xml文件。

https://serverfault.com/questions/892372/i-am-trying-to-cereate-custom-custom-centos-centos-7-iso-iso-iso-but-in-in-my-iso-iso-software-software-software-software-software-selection-leist?rq = 1

在Almalinux ISO中,comps.xml文件将在comps-appstream.x86_64.xml中具有更长的名称,并且位于中/appStream/repodata文件夹,因此需要调整链接的指令以适合Almalinux文件夹结构。

I am attempting something similar, and while I haven't reached that stage of the process yet, I believe what you're missing is updating the comps.xml file.

https://serverfault.com/questions/892372/i-am-trying-to-create-custom-centos-7-iso-but-in-my-iso-software-selection-list?rq=1

In the AlmaLinux iso, the comps.xml file will have a longer name ending in comps-AppStream.x86_64.xml and is in the /AppStream/repodata folder so the instructions from the link will need to be adjusted to fit the AlmaLinux folder structure.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文