在 Linux Red Hat 服务器上安装 apt-get

发布于 2024-10-25 05:14:28 字数 312 浏览 3 评论 0原文

我正在设置 Linux Red Hat Web 服务器。 apt-get 尚未安装,但 yum 已安装。但是,yum 找不到 apt 软件包。

当我运行 apt-get 时,我从 shell 收到一条消息,指出找不到命令 apt-get。当我尝试 yum install apt 或 yum install apt-get 时,我收到一条消息,说 yum 找不到软件包,并且无事可做,

我怀疑这可能是编辑源列表(与 apt 一样)以添加apt 的来源,但我 a) 不知道这个来源列表在哪里,b) 不知道什么来源会提供 apt...

如果有人能启发我,我将不胜感激

I'm setting up a Linux Red Hat web server. apt-get isn't installed, but yum is. However, yum cannot find the apt package.

When I run apt-get, I get a message from the shell saying that the command apt-get couldn't be found. When I try yum install apt or yum install apt-get I get a message saying yum couldn't find the package and there was nothing to do

I suspect that it's probably a case of editing a sources list (as with apt) to add the source that apt is available from, but I a) don't know where this source list would be, and b) don't know what source would provide apt...

If anyone could enlighten me, it would be greatly appreciated

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

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

发布评论

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

评论(4

秋意浓 2024-11-01 05:14:28

如果您有 Red Hat 服务器,请使用 yum。 apt-get 仅适用于 Debian、Ubuntu 和其他一些相关的 Linux。

你为什么要使用apt-get? (看来你知道yum是什么。)

If you have a Red Hat server use yum. apt-get is only for Debian, Ubuntu and some other related linux.

Why would you want to use apt-get anyway? (It seems like you know what yum is.)

〃温暖了心ぐ 2024-11-01 05:14:28

如果您坚持使用 yum,请尝试 yum install apt
正如本网站上所读到的:
链接

If you insist on using yum, try yum install apt.
As read on this site:
Link

零時差 2024-11-01 05:14:28

我认为您遇到了问题,因为 RedHat 使用 RPM 来管理软件包。基于 Debian 的系统使用 DEB,它们通过 apt 等工具进行管理。

I think you're running into problems because RedHat uses RPM for managing packages. Debian based systems use DEBs, which are managed with tools like apt.

谁人与我共长歌 2024-11-01 05:14:28

<块引用>

wget http:// /dag.wieers.com/packages/apt/apt-0.5.15lorg3.1-4.el4.rf.i386.rpm

rpm -ivh apt-0.5.15lorg3.1-4.el4.rf.i386.rpm

wget http ://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.4-1.el4.rf.i386.rpm

rpm -Uvh rpmforge-release-0.3.4-1.el4.rf.i386.rpm

可能某些 URL 已损坏,请研究它。
尽情享受吧~~

wget http://dag.wieers.com/packages/apt/apt-0.5.15lorg3.1-4.el4.rf.i386.rpm

rpm -ivh apt-0.5.15lorg3.1-4.el4.rf.i386.rpm

wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.4-1.el4.rf.i386.rpm

rpm -Uvh rpmforge-release-0.3.4-1.el4.rf.i386.rpm

maybe some URL is broken,please research it.
Enjoy~~

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