[英]install apt-get on linux Red Hat server
I'm setting up a Linux Red Hat web server. 我正在建立一个Linux Red Hat Web服务器。 apt-get isn't installed, but yum is.
没有安装apt-get,但是yum是。 However, yum cannot find the apt package.
但是,yum无法找到apt包。
When I run apt-get, I get a message from the shell saying that the command apt-get couldn't be found. 当我运行apt-get时,我从shell收到一条消息,说无法找到命令apt-get。 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
当我尝试yum install apt或yum install apt-get时,我收到一条消息,说yum无法找到包,并且没有任何关系
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... 我怀疑这可能是编辑源列表(与apt一样)添加apt可用的源的情况,但是我a)不知道这个源列表的位置,以及b)不知道是什么来源会提供...
If anyone could enlighten me, it would be greatly appreciated 如果有人能够启发我,我将不胜感激
If you have a Red Hat server use yum . 如果您有Red Hat服务器,请使用yum 。 apt-get is only for Debian, Ubuntu and some other related linux.
apt-get仅适用于Debian,Ubuntu和其他一些相关的linux。
Why would you want to use apt-get anyway? 你为什么要使用apt-get呢? (It seems like you know what yum is.)
(好像你知道百胜是什么。)
I think you're running into problems because RedHat uses RPM for managing packages. 我认为你遇到了问题因为RedHat使用RPM来管理包。 Debian based systems use DEBs, which are managed with tools like apt.
基于Debian的系统使用DEB,它们使用apt等工具进行管理。
wget http://dag.wieers.com/packages/apt/apt-0.5.15lorg3.1-4.el4.rf.i386.rpm
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
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
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
rpm -Uvh rpmforge-release-0.3.4-1.el4.rf.i386.rpm
maybe some URL is broken,please research it. 也许有些网址坏了,请研究一下。 Enjoy~~
享受~~
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.